.theme-cctv5-body {
    --cctv5-container: 1200px;
    --cctv5-accent: #e43a36;
    --cctv5-accent-strong: #bd2320;
    --cctv5-accent-soft: #fff0ef;
    --cctv5-secondary: #248be6;
    --cctv5-page: #f4f5f7;
    --cctv5-surface: #ffffff;
    --cctv5-surface-soft: #f7f8fa;
    --cctv5-text: #252b33;
    --cctv5-muted: #737b86;
    --cctv5-line: #e4e7ec;
    --cctv5-radius: 8px;
    --cctv5-shadow: 0 12px 34px rgb(35 43 55 / 8%);
    --cctv5-player: #101722;
    --cctv5-player-soft: #1c2b3b;
    --cctv5-player-text: #ffffff;
    --cctv5-font: inherit;
    min-width: 320px;
    color: var(--cctv5-text);
    background: var(--cctv5-page);
    font-family: var(--cctv5-font);
}

.theme-cctv5-body *,
.theme-cctv5-body *::before,
.theme-cctv5-body *::after {
    box-sizing: border-box;
}

.theme-cctv5-shell {
    width: min(var(--cctv5-container), calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 44px;
}

.theme-cctv5-hero,
.theme-cctv5-intro-card {
    border: 1px solid var(--cctv5-line);
    border-radius: var(--cctv5-radius);
    background: var(--cctv5-surface);
    box-shadow: var(--cctv5-shadow);
}

.theme-cctv5-hero {
    padding: 24px;
}

.theme-cctv5-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.theme-cctv5-heading h1 {
    margin: 4px 0 0;
    color: var(--cctv5-text);
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.theme-cctv5-eyebrow,
.theme-cctv5-card-kicker {
    color: var(--cctv5-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.theme-cctv5-source-state,
.theme-cctv5-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    white-space: nowrap;
}

.theme-cctv5-source-state {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid var(--cctv5-line);
    border-radius: calc(var(--cctv5-radius) * 0.72);
    color: var(--cctv5-muted);
    background: var(--cctv5-surface-soft);
    font-size: 13px;
}

.theme-cctv5-source-state i,
.theme-cctv5-live-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cctv5-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--cctv5-accent) 18%, transparent);
}

.theme-cctv5-media-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: stretch;
}

.theme-cctv5-player-column,
.theme-cctv5-feed-stack,
.theme-cctv5-feed-card {
    min-width: 0;
}

.theme-cctv5-player-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-cctv5-player {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--cctv5-player-text) 13%, transparent);
    border-radius: calc(var(--cctv5-radius) * 0.82);
    color: var(--cctv5-player-text);
    background:
        radial-gradient(circle at 75% 22%, color-mix(in srgb, var(--cctv5-secondary) 40%, transparent), transparent 30%),
        linear-gradient(135deg, var(--cctv5-player), var(--cctv5-player-soft));
    isolation: isolate;
}

.theme-cctv5-player::before,
.theme-cctv5-player::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.theme-cctv5-player::before {
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, color-mix(in srgb, var(--cctv5-accent) 16%, transparent), transparent 44%);
}

.theme-cctv5-player::after {
    right: -80px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border: 70px solid color-mix(in srgb, var(--cctv5-player-text) 4%, transparent);
    border-radius: 50%;
}

.theme-cctv5-player-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.12;
    background-image:
        linear-gradient(color-mix(in srgb, var(--cctv5-player-text) 24%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--cctv5-player-text) 24%, transparent) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom right, #000, transparent 78%);
}

.theme-cctv5-channel-mark {
    position: absolute;
    top: 20px;
    left: 22px;
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--cctv5-player-text);
    line-height: 1;
}

.theme-cctv5-channel-mark strong {
    font-size: 25px;
    letter-spacing: -0.05em;
}

.theme-cctv5-channel-mark b {
    font-size: 31px;
}

.theme-cctv5-channel-mark span {
    padding: 3px 6px;
    border-radius: 2px;
    color: var(--cctv5-player-text);
    background: var(--cctv5-accent);
    font-size: 11px;
    font-weight: 800;
}

.theme-cctv5-live-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--cctv5-player-text) 20%, transparent);
    border-radius: calc(var(--cctv5-radius) * 0.6);
    background: color-mix(in srgb, var(--cctv5-player) 72%, transparent);
    font-size: 11px;
    letter-spacing: 0.14em;
}

.theme-cctv5-play {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
    max-width: 82%;
    padding: 16px 24px;
    color: var(--cctv5-player-text);
    text-align: center;
    text-decoration: none;
}

.theme-cctv5-play-icon {
    position: relative;
    display: block;
    width: 78px;
    height: 78px;
    border: 1px solid color-mix(in srgb, var(--cctv5-player-text) 44%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--cctv5-accent) 82%, transparent);
    box-shadow: 0 18px 44px color-mix(in srgb, var(--cctv5-accent) 34%, transparent);
    transition: transform 180ms ease, background 180ms ease;
}

.theme-cctv5-play-icon::after {
    position: absolute;
    top: 50%;
    left: 52%;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 19px solid var(--cctv5-player-text);
    content: "";
    transform: translate(-42%, -50%);
}

.theme-cctv5-play:hover,
.theme-cctv5-play:focus-visible {
    color: var(--cctv5-player-text);
}

.theme-cctv5-play:hover .theme-cctv5-play-icon,
.theme-cctv5-play:focus-visible .theme-cctv5-play-icon {
    background: var(--cctv5-accent-strong);
    transform: scale(1.06);
}

.theme-cctv5-play:focus-visible,
.theme-cctv5-official-link:focus-visible,
.theme-cctv5-feed-card a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--cctv5-secondary) 66%, transparent);
    outline-offset: 3px;
}

.theme-cctv5-play strong {
    overflow: hidden;
    max-width: 100%;
    font-size: clamp(18px, 2vw, 24px);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-cctv5-play small {
    color: color-mix(in srgb, var(--cctv5-player-text) 68%, transparent);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.theme-cctv5-player-controls {
    position: absolute;
    right: 18px;
    bottom: 14px;
    left: 18px;
    display: grid;
    grid-template-columns: 18px 18px minmax(80px, 1fr) auto 18px;
    align-items: center;
    gap: 13px;
    opacity: 0.7;
}

.theme-cctv5-control-play {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid var(--cctv5-player-text);
}

.theme-cctv5-control-volume {
    width: 12px;
    height: 10px;
    border: 2px solid var(--cctv5-player-text);
    border-right: 0;
}

.theme-cctv5-timeline {
    height: 3px;
    overflow: hidden;
    border-radius: 4px;
    background: color-mix(in srgb, var(--cctv5-player-text) 22%, transparent);
}

.theme-cctv5-timeline i {
    display: block;
    width: 32%;
    height: 100%;
    background: var(--cctv5-accent);
}

.theme-cctv5-quality {
    font-size: 10px;
    font-weight: 800;
}

.theme-cctv5-fullscreen {
    width: 14px;
    height: 14px;
    border: 2px solid var(--cctv5-player-text);
}

.theme-cctv5-player-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--cctv5-line);
    border-radius: calc(var(--cctv5-radius) * 0.72);
    color: var(--cctv5-muted);
    background: var(--cctv5-surface-soft);
}

.theme-cctv5-player-note > span {
    display: grid;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    color: var(--cctv5-player-text);
    background: var(--cctv5-secondary);
    font-size: 12px;
    font-weight: 800;
}

.theme-cctv5-player-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
}

.theme-cctv5-feed-stack {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-height: 540px;
}

.theme-cctv5-feed-card {
    display: flex;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--cctv5-line);
    border-radius: calc(var(--cctv5-radius) * 0.82);
    background: var(--cctv5-surface-soft);
}

.theme-cctv5-feed-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    padding: 0 14px;
    border-bottom: 1px solid var(--cctv5-line);
    background: var(--cctv5-surface);
}

.theme-cctv5-feed-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--cctv5-text);
    font-size: 15px;
}

.theme-cctv5-feed-head h2 i {
    width: 4px;
    height: 16px;
    border-radius: 4px;
    background: var(--cctv5-accent);
}

.theme-cctv5-feed-head > a {
    color: var(--cctv5-muted);
    font-size: 12px;
    text-decoration: none;
}

.theme-cctv5-feed-head > a:hover {
    color: var(--cctv5-accent);
}

.theme-cctv5-feed-list {
    min-height: 0;
    margin: 0;
    padding: 6px 12px 9px;
    overflow-y: auto;
    list-style: none;
    scrollbar-color: var(--cctv5-line) transparent;
    scrollbar-width: thin;
}

.theme-cctv5-feed-list li + li {
    border-top: 1px dashed var(--cctv5-line);
}

.theme-cctv5-feed-list li > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 31px;
    color: var(--cctv5-text);
    font-size: 12px;
    text-decoration: none;
}

.theme-cctv5-feed-list li > a:hover .theme-cctv5-feed-title {
    color: var(--cctv5-accent);
}

.theme-cctv5-feed-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-cctv5-feed-title b {
    color: var(--cctv5-secondary);
    font-size: 9px;
}

.theme-cctv5-feed-list time {
    color: var(--cctv5-muted);
    font-size: 10px;
    white-space: nowrap;
}

.theme-cctv5-feed-empty {
    display: grid;
    flex: 1;
    min-height: 82px;
    margin: 0;
    padding: 14px;
    place-items: center;
    color: var(--cctv5-muted);
    font-size: 13px;
    text-align: center;
}

.theme-cctv5-match-list li > a {
    display: block;
    padding: 7px 0;
}

.theme-cctv5-match-meta,
.theme-cctv5-match-teams {
    display: grid;
    align-items: center;
    gap: 7px;
}

.theme-cctv5-match-meta {
    grid-template-columns: auto auto minmax(0, 1fr);
    margin-bottom: 6px;
    color: var(--cctv5-muted);
    font-size: 10px;
}

.theme-cctv5-match-meta em {
    padding: 2px 5px;
    border-radius: calc(var(--cctv5-radius) * 0.4);
    color: var(--cctv5-player-text);
    background: var(--cctv5-accent);
    font-style: normal;
    font-weight: 800;
}

.theme-cctv5-match-meta b {
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-cctv5-match-teams {
    grid-template-columns: minmax(0, 1fr) minmax(48px, max-content) minmax(0, 1fr);
    color: var(--cctv5-text);
    font-size: 11px;
}

.theme-cctv5-match-teams span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-cctv5-match-teams span:last-child {
    text-align: right;
}

.theme-cctv5-match-teams strong {
    color: var(--cctv5-accent);
    font-size: 13px;
    white-space: nowrap;
}

.theme-cctv5-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    margin-top: 20px;
}

.theme-cctv5-intro-card {
    min-width: 0;
    padding: 25px;
}

.theme-cctv5-intro-card h2 {
    margin: 6px 0 15px;
    color: var(--cctv5-text);
    font-size: 22px;
}

.theme-cctv5-intro-card p {
    margin: 0;
    color: var(--cctv5-muted);
    font-size: 14px;
    line-height: 1.85;
}

.theme-cctv5-intro-card p + p {
    margin-top: 10px;
}

.theme-cctv5-official-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    margin-top: 18px;
    padding: 0 16px;
    border-radius: calc(var(--cctv5-radius) * 0.72);
    color: var(--cctv5-player-text);
    background: var(--cctv5-accent);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.theme-cctv5-official-link:hover {
    color: var(--cctv5-player-text);
    background: var(--cctv5-accent-strong);
    transform: translateY(-1px);
}

.theme-cctv5-facts dl,
.theme-cctv5-facts dl div {
    margin: 0;
}

.theme-cctv5-facts dl {
    border-top: 1px solid var(--cctv5-line);
}

.theme-cctv5-facts dl div {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--cctv5-line);
    font-size: 13px;
}

.theme-cctv5-facts dt {
    color: var(--cctv5-muted);
}

.theme-cctv5-facts dd {
    min-width: 0;
    margin: 0;
    color: var(--cctv5-text);
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .theme-cctv5-media-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .theme-cctv5-player {
        min-height: 0;
    }

    .theme-cctv5-feed-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
        max-height: none;
    }

    .theme-cctv5-feed-card {
        min-height: 240px;
    }

    .theme-cctv5-intro-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 680px) {
    .theme-cctv5-shell {
        width: min(100% - 20px, var(--cctv5-container));
        padding-bottom: 28px;
    }

    .theme-cctv5-hero {
        padding: 14px;
    }

    .theme-cctv5-heading {
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .theme-cctv5-heading h1 {
        font-size: 28px;
    }

    .theme-cctv5-eyebrow {
        letter-spacing: 0.1em;
    }

    .theme-cctv5-source-state {
        min-height: 29px;
        padding: 0 9px;
        font-size: 11px;
    }

    .theme-cctv5-player {
        aspect-ratio: 4 / 3;
    }

    .theme-cctv5-channel-mark {
        top: 15px;
        left: 15px;
    }

    .theme-cctv5-live-badge {
        top: 14px;
        right: 14px;
    }

    .theme-cctv5-play-icon {
        width: 64px;
        height: 64px;
    }

    .theme-cctv5-play strong {
        font-size: 17px;
    }

    .theme-cctv5-player-controls {
        right: 12px;
        bottom: 11px;
        left: 12px;
        gap: 9px;
    }

    .theme-cctv5-player-note {
        padding: 10px 11px;
    }

    .theme-cctv5-feed-stack,
    .theme-cctv5-intro-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .theme-cctv5-feed-card {
        min-height: 270px;
    }

    .theme-cctv5-feed-list li > a {
        min-height: 35px;
    }

    .theme-cctv5-intro-grid {
        gap: 12px;
        margin-top: 12px;
    }

    .theme-cctv5-intro-card {
        padding: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-cctv5-play-icon,
    .theme-cctv5-official-link {
        transition: none;
    }
}
