.channel-page {
    --channel-bg: #f6f2ea;
    --channel-surface: rgba(255, 255, 255, 0.92);
    --channel-ink: #1f1a17;
    --channel-muted: #6f665d;
    --channel-border: rgba(83, 63, 40, 0.12);
    --channel-accent: #b93a1f;
    background:
        radial-gradient(circle at top left, rgba(236, 204, 164, 0.72), transparent 24%),
        linear-gradient(180deg, #fcfaf6 0%, var(--channel-bg) 100%);
    color: var(--channel-ink);
    min-height: calc(100vh - var(--header-height, 72px));
    padding-bottom: 3rem;
}

.channel-hero,
.channel-tabs,
.channel-card,
.channel-video-card {
    width: min(1180px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.channel-hero {
    position: relative;
    margin-top: 1.5rem;
    min-height: 340px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--channel-border);
    box-shadow: 0 26px 48px rgba(50, 33, 18, 0.12);
    background: #241a16;
}

.channel-hero__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-hero__cover--placeholder {
    background:
        radial-gradient(circle at 16% 24%, rgba(239, 198, 147, 0.92), transparent 18%),
        radial-gradient(circle at 82% 18%, rgba(255, 126, 81, 0.36), transparent 16%),
        linear-gradient(135deg, #291d17 0%, #6b2417 46%, #d36722 100%);
}

.channel-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(15, 10, 7, 0.78) 10%, rgba(15, 10, 7, 0.22) 56%, rgba(15, 10, 7, 0.82) 100%);
}

.channel-hero__content {
    position: relative;
    z-index: 1;
    min-height: 340px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.channel-hero__avatar {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
}

.channel-hero__text h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff9f0;
}

.channel-hero__meta,
.channel-hero__bio {
    margin: 0.5rem 0 0;
    color: rgba(255, 249, 240, 0.9);
}

.channel-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.channel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.channel-btn--primary,
.channel-subscribe-btn {
    background: linear-gradient(135deg, #b93a1f 0%, #ef6f31 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

.channel-subscribe-btn.is-active {
    background: rgba(255, 255, 255, 0.18);
}

.channel-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.2rem;
    padding: 0.4rem;
    border-radius: 22px;
    background: var(--channel-surface);
    border: 1px solid var(--channel-border);
    box-shadow: 0 14px 28px rgba(67, 48, 29, 0.08);
}

.channel-tabs a {
    padding: 0.8rem 1.1rem;
    border-radius: 16px;
    color: var(--channel-muted);
    text-decoration: none;
    font-weight: 700;
}

.channel-tabs a.is-active {
    background: rgba(185, 58, 31, 0.1);
    color: var(--channel-ink);
}

.channel-content {
    width: min(1180px, calc(100% - 2rem));
    margin: 1.25rem auto 0;
}

.channel-home,
.channel-about {
    display: grid;
    gap: 1rem;
}

.channel-about {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.channel-card {
    border-radius: 28px;
    border: 1px solid var(--channel-border);
    background: var(--channel-surface);
    box-shadow: 0 20px 40px rgba(67, 48, 29, 0.08);
    padding: 1.25rem;
}

.channel-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.channel-stats span,
.channel-featured__eyebrow,
.channel-section-heading p,
.channel-video-card__body p,
.channel-detail-list span {
    color: var(--channel-muted);
}

.channel-stats strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.7rem;
}

.channel-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
}

.channel-featured__media img,
.channel-video-card__thumb-wrap img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.channel-featured__media img {
    border-radius: 22px;
    aspect-ratio: 16 / 9;
}

.channel-featured__body h2 {
    margin: 0.3rem 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.channel-featured__body h2 a {
    color: inherit;
    text-decoration: none;
}

.channel-section-heading {
    margin: 1.5rem 0 0.5rem;
}

.channel-section-heading h2 {
    margin: 0;
}

.channel-video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.channel-video-card {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--channel-border);
    background: var(--channel-surface);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 18px 32px rgba(67, 48, 29, 0.08);
}

.channel-video-card__thumb-wrap {
    position: relative;
}

.channel-video-card__thumb-wrap img {
    aspect-ratio: 16 / 9;
}

.channel-video-card__duration {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: rgba(14, 11, 9, 0.82);
    color: #fff;
    font-size: 0.78rem;
}

.channel-video-card__body {
    padding: 0.95rem 1rem 1.05rem;
}

.channel-video-card__body h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    line-height: 1.35;
}

.channel-detail-list {
    display: grid;
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.channel-detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--channel-border);
}

.channel-detail-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.channel-detail-list a {
    color: var(--channel-accent);
    text-decoration: none;
}

.channel-empty {
    text-align: center;
}

@media (max-width: 980px) {
    .channel-hero__content,
    .channel-featured,
    .channel-about,
    .channel-stats {
        grid-template-columns: 1fr;
    }

    .channel-hero__actions {
        justify-content: flex-start;
    }

    .channel-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .channel-hero,
    .channel-tabs,
    .channel-card,
    .channel-video-card,
    .channel-content {
        width: calc(100% - 1rem);
    }

    .channel-hero {
        margin-top: 0.75rem;
    }

    .channel-hero__content {
        padding: 1rem;
    }

    .channel-hero__avatar {
        width: 88px;
        height: 88px;
        border-radius: 22px;
    }

    .channel-tabs {
        overflow-x: auto;
    }

    .channel-video-grid {
        grid-template-columns: 1fr;
    }
}
