html.light-mode .kol-tlf-wrap,
html.dark-mode .kol-tlf-wrap {
    margin: 20px 0;
    width: 100%;
}

html.light-mode .kol-tlf-heading,
html.dark-mode .kol-tlf-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

html.light-mode .kol-tlf-heading h2,
html.dark-mode .kol-tlf-heading h2 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0;
}

html.light-mode .kol-tlf-source,
html.dark-mode .kol-tlf-source {
    font-size: 12px;
}

html.light-mode .kol-tlf-grid,
html.dark-mode .kol-tlf-grid {
    display: block;
    width: 100%;
}

html.light-mode .kol-tlf-activity-container,
html.dark-mode .kol-tlf-activity-container {
    margin: 0;
    width: 100%;
}

html.light-mode .kol-tlf-activity-container .kol-as-feed-list,
html.dark-mode .kol-tlf-activity-container .kol-as-feed-list {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    width: 100%;
}

html.light-mode .kol-tlf-display-cards .kol-tlf-activity-container .kol-as-feed-list,
html.dark-mode .kol-tlf-display-cards .kol-tlf-activity-container .kol-as-feed-list {
    grid-template-columns: repeat(var(--kol-tlf-columns, 3), minmax(0, 1fr));
}

html.light-mode .kol-tlf-display-embeds .kol-tlf-card,
html.dark-mode .kol-tlf-display-embeds .kol-tlf-card,
html.light-mode .kol-tlf-live-main,
html.dark-mode .kol-tlf-live-main {
    grid-column: 1 / -1;
}

html.light-mode .kol-tlf-card,
html.dark-mode .kol-tlf-card {
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

html.light-mode .kol-tlf-activity-container .kol-tlf-card,
html.dark-mode .kol-tlf-activity-container .kol-tlf-card {
    box-sizing: border-box;
    max-width: none;
    min-width: 0;
}

html.light-mode .kol-tlf-activity-container .kol-as-activity-item,
html.dark-mode .kol-tlf-activity-container .kol-as-activity-item {
    max-width: none;
    width: 100%;
}

html.light-mode .kol-tlf-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

html.dark-mode .kol-tlf-card {
    background: #1a1a1a;
    border: 1px solid #333333;
    color: #e0e0e0;
}

html.light-mode .kol-tlf-thumb,
html.dark-mode .kol-tlf-thumb {
    aspect-ratio: 16 / 9;
    background: #111111;
    border: 0;
    cursor: pointer;
    display: block;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: left;
    width: 100%;
    text-decoration: none;
}

html.light-mode .kol-tlf-thumb img,
html.dark-mode .kol-tlf-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

html.light-mode .kol-tlf-live,
html.dark-mode .kol-tlf-live {
    background: #e91916;
    border-radius: 4px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    left: 10px;
    line-height: 1;
    padding: 5px 7px;
    position: absolute;
    text-transform: uppercase;
    top: 10px;
}

html.light-mode .kol-tlf-play-label,
html.dark-mode .kol-tlf-play-label {
    background: rgba(0, 0, 0, 0.72);
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    left: 50%;
    line-height: 1;
    padding: 10px 14px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

html.light-mode .kol-tlf-embed,
html.dark-mode .kol-tlf-embed {
    aspect-ratio: 16 / 9;
    background: #111111;
    min-height: min(70vh, 720px);
    width: 100%;
}

html.light-mode .kol-tlf-embed iframe,
html.dark-mode .kol-tlf-embed iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

html.light-mode .kol-tlf-playing,
html.dark-mode .kol-tlf-playing {
    grid-column: 1 / -1;
}

html.light-mode .kol-tlf-playing .kol-tlf-embed,
html.dark-mode .kol-tlf-playing .kol-tlf-embed {
    min-height: min(70vh, 720px);
}

html.light-mode .kol-tlf-body,
html.dark-mode .kol-tlf-body {
    padding: 12px;
}

html.light-mode .kol-tlf-meta,
html.dark-mode .kol-tlf-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 8px;
}

html.light-mode .kol-tlf-meta {
    color: #6b7280;
}

html.dark-mode .kol-tlf-meta {
    color: #a3a3a3;
}

html.light-mode .kol-tlf-body h3,
html.dark-mode .kol-tlf-body h3 {
    font-size: 16px;
    line-height: 1.25;
    margin: 0 0 7px;
}

html.light-mode .kol-tlf-body h3 a,
html.dark-mode .kol-tlf-body h3 a {
    color: inherit;
    text-decoration: none;
}

html.light-mode .kol-tlf-claimed-owner,
html.dark-mode .kol-tlf-claimed-owner {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 0 0 8px;
}

html.light-mode .kol-tlf-claimed-owner img,
html.dark-mode .kol-tlf-claimed-owner img {
    border-radius: 50%;
    height: 28px;
    object-fit: cover;
    width: 28px;
}

html.light-mode .kol-tlf-body p,
html.dark-mode .kol-tlf-body p {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.35;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

html.light-mode .kol-tlf-actions,
html.dark-mode .kol-tlf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

html.light-mode .kol-tlf-comment,
html.dark-mode .kol-tlf-comment {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    gap: 7px;
    min-height: 32px;
    padding: 0;
}

html.light-mode .kol-tlf-comment {
    color: #1f2937;
}

html.dark-mode .kol-tlf-comment {
    color: #e0e0e0;
}

html.light-mode .kol-as-count-comments,
html.dark-mode .kol-as-count-comments {
    font-size: 12px;
    opacity: 0.75;
}

html.light-mode .kol-tlf-join,
html.light-mode .kol-tlf-claim,
html.light-mode .kol-tlf-watch-local,
html.dark-mode .kol-tlf-join,
html.dark-mode .kol-tlf-claim,
html.dark-mode .kol-tlf-watch-local {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    min-height: 32px;
    padding: 0 12px;
    text-decoration: none;
}

html.light-mode .kol-tlf-join,
html.light-mode .kol-tlf-watch-local,
html.dark-mode .kol-tlf-join,
html.dark-mode .kol-tlf-watch-local {
    background: linear-gradient(#2d7c2d, #1f5f1f);
    border-bottom: 1px solid #1a4d1a;
    border-left: 1px solid #3d9d3d;
    border-right: 1px solid #1a4d1a;
    border-top: 1px solid #3d9d3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

html.light-mode .kol-tlf-claim,
html.dark-mode .kol-tlf-claim {
    background: linear-gradient(#ccfff6, #99ffe8);
    border: 2px solid #00cc99;
    box-shadow: 0 0 0 3px rgba(0, 204, 153, 0.15), 0 4px 8px rgba(0, 204, 153, 0.2);
    color: #007755;
}

html.light-mode .kol-tlf-claimed-badge,
html.dark-mode .kol-tlf-claimed-badge {
    border-radius: 6px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    min-height: 32px;
    padding: 0 12px;
    align-items: center;
}

html.light-mode .kol-tlf-claimed-badge {
    background: #f3f4f6;
    color: #1f2937;
}

html.dark-mode .kol-tlf-claimed-badge {
    background: #2a2a2a;
    color: #e0e0e0;
}

html.light-mode .kol-tlf-notice,
html.dark-mode .kol-tlf-notice {
    border-radius: 8px;
    font-size: 14px;
    margin: 0 0 14px;
    padding: 12px 14px;
}

html.light-mode .kol-tlf-notice-success,
html.dark-mode .kol-tlf-notice-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #166534;
}

html.light-mode .kol-tlf-notice-error,
html.dark-mode .kol-tlf-notice-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #991b1b;
}

html.light-mode .kol-myplace-twitch-live-card,
html.dark-mode .kol-myplace-twitch-live-card {
    border-radius: 8px;
    margin: 12px 0;
    overflow: hidden;
    padding: 10px;
}

html.light-mode .kol-myplace-twitch-live-card {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

html.dark-mode .kol-myplace-twitch-live-card {
    background: #2a2a2a;
    border: 1px solid #333333;
}

html.light-mode .kol-myplace-twitch-live-head,
html.dark-mode .kol-myplace-twitch-live-head {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

html.light-mode .kol-myplace-twitch-live-dot,
html.dark-mode .kol-myplace-twitch-live-dot {
    background: #6b7280;
    border-radius: 50%;
    height: 9px;
    width: 9px;
}

html.light-mode .kol-myplace-twitch-live-dot.is-live,
html.dark-mode .kol-myplace-twitch-live-dot.is-live {
    background: #e91916;
}

html.light-mode .kol-myplace-twitch-game,
html.dark-mode .kol-myplace-twitch-game {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.75;
}

html.light-mode .kol-myplace-twitch-title,
html.dark-mode .kol-myplace-twitch-title {
    font-size: 13px;
    line-height: 1.35;
    margin-top: 6px;
}

html.light-mode .kol-tlf-empty,
html.dark-mode .kol-tlf-empty {
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

html.light-mode .kol-tlf-empty {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

html.dark-mode .kol-tlf-empty {
    background: #2a2a2a;
    border: 1px solid #333333;
    color: #e0e0e0;
}

html.light-mode .kol-tlf-watch-local,
html.dark-mode .kol-tlf-watch-local {
    background: linear-gradient(#383838, #343434);
    border-bottom: 1px solid #282828;
    border-left: 1px solid #555555;
    border-right: 1px solid #282828;
    border-top: 1px solid #555555;
    color: #ffffff;
}

html.light-mode .kol-tlf-live-page,
html.dark-mode .kol-tlf-live-page {
    width: 100%;
}

html.light-mode .kol-tlf-live-shell,
html.dark-mode .kol-tlf-live-shell {
    margin: 0 auto;
    max-width: 1400px;
    padding: 20px;
    width: 100%;
}

html.light-mode .kol-tlf-live-player,
html.dark-mode .kol-tlf-live-player {
    aspect-ratio: 16 / 9;
    background: #111111;
    width: 100%;
}

html.light-mode .kol-tlf-live-player iframe,
html.dark-mode .kol-tlf-live-player iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

html.light-mode .kol-tlf-live-details,
html.dark-mode .kol-tlf-live-details {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 0;
}

html.light-mode .kol-tlf-live-details h1,
html.dark-mode .kol-tlf-live-details h1 {
    font-size: 26px;
    line-height: 1.2;
    margin: 6px 0;
}

@media (max-width: 900px) {
    html.light-mode .kol-tlf-activity-container .kol-as-feed-list,
    html.dark-mode .kol-tlf-activity-container .kol-as-feed-list {
        grid-template-columns: 1fr;
    }

    html.light-mode .kol-tlf-display-cards .kol-tlf-activity-container .kol-as-feed-list,
    html.dark-mode .kol-tlf-display-cards .kol-tlf-activity-container .kol-as-feed-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    html.light-mode .kol-tlf-heading,
    html.dark-mode .kol-tlf-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    html.light-mode .kol-tlf-grid,
    html.dark-mode .kol-tlf-grid {
        grid-template-columns: 1fr;
    }

    html.light-mode .kol-tlf-activity-container .kol-as-feed-list,
    html.dark-mode .kol-tlf-activity-container .kol-as-feed-list {
        grid-template-columns: 1fr;
    }

    html.light-mode .kol-tlf-live-shell,
    html.dark-mode .kol-tlf-live-shell {
        padding: 12px;
    }

    html.light-mode .kol-tlf-live-details,
    html.dark-mode .kol-tlf-live-details {
        flex-direction: column;
    }
}
