/* ============== BREADCRUMB BAR ============== */
.crumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-mute);
    flex-wrap: wrap;
}

.crumb a {
    color: var(--text-mute);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s var(--ease);
}

.crumb a:hover {
    color: var(--brand-2);
}

.crumb .sep {
    color: var(--text-soft);
    font-size: 9px;
}

.crumb .current {
    color: var(--text);
    font-weight: 700;
}

.crumb .cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-radius: 999px;
}

.crumb .cat-pill i {
    font-size: 9px;
}

/* ============== CATEGORY TAB STRIP ============== */
.tabs-section {
    background: linear-gradient(180deg, #f6f7fb 0%, #eef1f8 100%);
    padding: 28px 0 18px;
    border-bottom: 1px solid var(--line);
}

.tabs-head {
    text-align: center;
    margin-bottom: 22px;
}

.tabs-eye {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(14, 55, 137, .08);
    color: var(--brand-2);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tabs-eye .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1abc88;
    animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .4;
    }
}

.tabs-head h1 {
    margin: 0;
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--text);
}

.cat-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 880px) {
    .cat-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 460px) {
    .cat-tabs {
        grid-template-columns: 1fr;
    }
}

.cat-tab {
    position: relative;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 16px 18px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all .3s var(--ease);
    overflow: hidden;
    isolation: isolate;
}

.cat-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    opacity: 0;
    transition: opacity .35s var(--ease);
    z-index: -1;
}

.cat-tab:hover {
    border-color: var(--brand-2);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -10px rgba(14, 55, 137, .25);
}

.cat-tab.active {
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 32px -10px rgba(14, 55, 137, .45);
}

.cat-tab.active::before {
    opacity: 1;
}

.cat-tab .t-ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: all .3s var(--ease);
}

.cat-tab.active .t-ic {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .30);
}

.cat-tab.prime.active .t-ic {
    color: #f5d77a;
}

.cat-tab.plus.active .t-ic {
    color: #7ec0ff;
}

.cat-tab.basic.active .t-ic {
    color: #6cf2bf;
}

.cat-tab.long.active .t-ic {
    color: #d1a8e0;
}

.cat-tab .t-meta {
    flex: 1;
    min-width: 0;
}

.cat-tab .t-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.2px;
    line-height: 1.1;
}

.cat-tab.active .t-name {
    color: #fff;
}

.cat-tab .t-info {
    font-size: 11.5px;
    color: var(--text-soft);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-tab.active .t-info {
    color: rgba(255, 255, 255, .7);
}

.cat-tab .t-info .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.cat-tab .t-arrow {
    font-size: 12px;
    color: var(--text-soft);
    transition: transform .25s var(--ease), color .25s var(--ease);
}

.cat-tab:hover .t-arrow {
    transform: translateX(3px);
    color: var(--brand-2);
}

.cat-tab.active .t-arrow {
    color: rgba(255, 255, 255, .6);
    transform: translateX(0);
}

.cat-tab.active .t-arrow {
    display: none;
}

.cat-tab.active::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

/* ============== DETAIL ============== */
.detail-section {
    padding: 28px 0 60px;
    background: var(--bg);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 1100px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ============== VIDEO PLAYER ============== */
.player-wrap {
    background: #030641;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px -16px rgba(3, 6, 65, .40);
}

.player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(74, 144, 255, .20), rgba(3, 6, 65, .6)),
    linear-gradient(135deg, #030641 0%, #0e3789 60%, #2950bd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
}

.player::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(74, 144, 255, .30), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(26, 188, 136, .18), transparent 50%);
    z-index: -1;
}

.player::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    z-index: -1;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px 30px;
    pointer-events: none;
}

.player-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.player-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .20);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.player-badge i {
    font-size: 10px;
}

.player-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(239, 71, 96, .90);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-radius: 6px;
}

.player-live .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: pulseDot 1.4s infinite;
}

.player-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.play-btn {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--brand-2);
    font-size: 30px;
    padding-left: 5px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    border: 4px solid rgba(255, 255, 255, .30);
    cursor: pointer;
    pointer-events: auto;
    transition: transform .3s var(--ease), background .3s var(--ease);
    position: relative;
}

.play-btn::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .20);
    z-index: -1;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(.95);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.play-btn:hover {
    transform: scale(1.05);
}

.player-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.player-info .ep-num {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, .7);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.player-info .ep-title {
    font-size: clamp(18px, 2.6vw, 26px);
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    letter-spacing: -.3px;
    margin: 0;
}

.player-meta-side {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.player-meta-side span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.player-meta-side i {
    font-size: 11px;
}

@media (max-width: 720px) {
    .player-overlay {
        padding: 18px 18px;
    }

    .play-btn {
        width: 68px;
        height: 68px;
        font-size: 22px;
    }

    .player-meta-side {
        display: none;
    }
}

/* ============== EPISODE META BELOW PLAYER ============== */
.ep-meta-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px 28px;
    margin-top: 18px;
    box-shadow: 0 4px 14px rgba(10, 20, 40, .04);
}

.ep-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ep-meta-left h2 {
    margin: 0 0 6px;
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.4px;
}

.ep-meta-left .sub {
    font-size: 13px;
    color: var(--text-mute);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ep-meta-left .sub i {
    font-size: 11px;
    opacity: .7;
}

.ep-meta-left .sub .dot-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-soft);
    display: inline-block;
}

.ep-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ep-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    cursor: pointer;
    transition: all .2s var(--ease);
    font-family: inherit;
}

.ep-action:hover {
    background: #fff;
    color: var(--brand-2);
    border-color: var(--brand-2);
}

.ep-action.active {
    background: rgba(239, 71, 96, .10);
    color: #ef4760;
    border-color: rgba(239, 71, 96, .30);
}

.ep-action i {
    font-size: 12px;
}

/* Analyst byline */
.analyst-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(14, 55, 137, .06), rgba(14, 55, 137, .01));
    border: 1px solid rgba(14, 55, 137, .12);
    border-radius: 14px;
    margin-bottom: 20px;
}

.analyst-row .av {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .8);
    flex-shrink: 0;
    overflow: hidden;
}

.analyst-row .av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.analyst-row .meta {
    flex: 1;
    min-width: 0;
}

.analyst-row .meta .nm {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}

.analyst-row .meta .ro {
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 1px;
}

.analyst-row .follow {
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    border: 0;
    font-family: inherit;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    box-shadow: 0 6px 14px rgba(14, 55, 137, .25);
}

.analyst-row .follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(14, 55, 137, .35);
}

/* About block */
.about-block h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-block h3 i {
    color: var(--brand-2);
    font-size: 14px;
}

.about-block p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-2);
    margin: 0 0 14px;
}

.coverage-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 18px;
}

@media (max-width: 560px) {
    .coverage-list {
        grid-template-columns: 1fr;
    }
}

.coverage-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-2);
    font-weight: 500;
}

.coverage-list li i {
    color: #1abc88;
    font-size: 11px;
    margin-top: 4px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-2);
}

/* ============== PLAYLIST SIDEBAR ============== */
.playlist-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    box-shadow: 0 8px 24px -8px rgba(10, 20, 40, .10);
}

@media (max-width: 1100px) {
    .playlist-card {
        position: static;
        max-height: none;
    }
}

.pl-head {
    padding: 18px 20px;
    background: linear-gradient(135deg, #030641 0%, #0e3789 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.pl-head::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 255, .30), transparent 70%);
    z-index: -1;
}

.pl-head .pl-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pl-head .pl-title {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.2px;
    margin: 0 0 4px;
    color: #fff;
}

.pl-head .pl-sub {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
}

.pl-head .pl-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}

.pl-tabs {
    display: flex;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.pl-tab {
    flex: 1;
    padding: 12px 8px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-mute);
    cursor: pointer;
    transition: all .2s var(--ease);
}

.pl-tab:hover {
    color: var(--brand-2);
}

.pl-tab.active {
    color: var(--brand-2);
    border-bottom-color: var(--brand-2);
}

.pl-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    scroll-behavior: smooth;
}

.pl-list::-webkit-scrollbar {
    width: 6px;
}

.pl-list::-webkit-scrollbar-track {
    background: transparent;
}

.pl-list::-webkit-scrollbar-thumb {
    background: var(--line-2);
    border-radius: 3px;
}

.pl-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s var(--ease);
    text-decoration: none;
    color: inherit;
    margin-bottom: 2px;
}

.pl-item:hover {
    background: var(--bg-soft);
}

.pl-item.active {
    background: linear-gradient(135deg, rgba(14, 55, 137, .10), rgba(41, 80, 189, .04));
    border-left: 3px solid var(--brand-2);
    padding-left: 7px;
}

.pl-item.active .pl-now {
    display: inline-flex;
}

.pl-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.pl-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, .18), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(0, 0, 0, .20), transparent 60%);
    z-index: -1;
}

.pl-thumb .mini-play {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    display: grid;
    place-items: center;
    color: var(--brand-2);
    font-size: 10px;
    padding-left: 2px;
}

.pl-thumb .dur {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 5px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    border-radius: 3px;
}

.pl-thumb .watched-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #ef4760;
}

.pl-meta .pl-tt {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pl-meta .pl-info {
    font-size: 11px;
    color: var(--text-soft);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-meta .pl-info .dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.pl-meta .pl-now {
    display: none;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--brand-2);
    letter-spacing: .4px;
    text-transform: uppercase;
}

.pl-meta .pl-now .ndot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-2);
    animation: pulseDot 1.4s infinite;
}

.pl-new-pill {
    font-size: 9px;
    font-weight: 800;
    color: #ef4760;
    background: rgba(239, 71, 96, .10);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: .4px;
    text-transform: uppercase;
}

/* Pagination */
.pl-pagi {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.pl-pagi .info {
    font-size: 11.5px;
    color: var(--text-mute);
    font-weight: 600;
}

.pl-pagi .pages {
    display: flex;
    gap: 4px;
}

.pl-page-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .2s var(--ease);
}

.pl-page-btn:hover:not(:disabled) {
    background: var(--bg-soft);
    color: var(--brand-2);
    border-color: var(--brand-2);
}

.pl-page-btn.active {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(14, 55, 137, .30);
}

.pl-page-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* ============== ATTACHMENTS ============== */
.attach-section {
    margin-top: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 14px rgba(10, 20, 40, .04);
}

@media (max-width: 720px) {
    .attach-section {
        padding: 22px 20px;
    }
}

.attach-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.attach-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.attach-head h3 .h-ic {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(14, 55, 137, .25);
}

.attach-head .dl-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 16px rgba(14, 55, 137, .25);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.attach-head .dl-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(14, 55, 137, .35);
}

.attach-sub {
    font-size: 13.5px;
    color: var(--text-mute);
    margin: 0 0 22px;
}

.attach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 720px) {
    .attach-grid {
        grid-template-columns: 1fr;
    }
}

.attach-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all .25s var(--ease);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.attach-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--brand-2), var(--brand-3));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s var(--ease);
}

.attach-card:hover {
    background: #fff;
    border-color: var(--brand-2);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -10px rgba(14, 55, 137, .20);
}

.attach-card:hover::before {
    transform: scaleY(1);
}

.af-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(14, 55, 137, .25);
    flex-shrink: 0;
    position: relative;
}

.af-icon .af-ext {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 9px;
    font-weight: 800;
    background: #fff;
    color: var(--brand-2);
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: .4px;
    border: 1px solid var(--line);
}

.af-meta {
    flex: 1;
    min-width: 0;
}

.af-meta .af-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin: 0 0 4px;
}

.af-meta .af-desc {
    font-size: 12.5px;
    color: var(--text-mute);
    line-height: 1.45;
    margin: 0 0 8px;
}

.af-meta .af-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-soft);
    font-weight: 600;
}

.af-meta .af-stats i {
    font-size: 10px;
    margin-right: 3px;
}

.af-meta .af-stats .dot-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-soft);
    display: inline-block;
}

.af-dl {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-2);
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform .25s var(--ease), background .25s var(--ease);
}

.attach-card:hover .af-dl {
    transform: scale(1.10);
    background: var(--brand-1);
}

/* ============== RELATED EPISODES ============== */
.related-section {
    padding: 50px 0;
    background: linear-gradient(180deg, #f6f7fb 0%, #eef1f8 100%);
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(14, 55, 137, .08);
    color: var(--brand-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(22px, 3.2vw, 30px);
    font-weight: 800;
    letter-spacing: -.5px;
    margin: 0 0 8px;
    color: var(--text);
}

.section-sub {
    font-size: 14px;
    color: var(--text-mute);
    margin: 0;
}

.rel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 1000px) {
    .rel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .rel-grid {
        grid-template-columns: 1fr;
    }
}

.rel-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.rel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.rel-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.rel-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, .18), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(0, 0, 0, .20), transparent 60%);
    z-index: -1;
}

.rel-thumb .rel-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    display: grid;
    place-items: center;
    color: var(--brand-2);
    font-size: 14px;
    padding-left: 3px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}

.rel-thumb .rel-dur {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    border-radius: 4px;
}

.rel-meta {
    padding: 14px 16px;
}

.rel-meta .rel-tt {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.rel-meta .rel-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: var(--text-soft);
    font-weight: 600;
}

@media (max-width: 720px) {
    .tabs-section {
        padding: 22px 0 14px;
    }

    .ep-meta-card {
        padding: 22px 20px;
    }

    .related-section {
        padding: 40px 0;
    }
}

/* ---- Collapsible About block ------------------------------------------- */
.about-block .about-head{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  margin: 0 0 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  text-align: start;
}
.about-block .about-head > span{ display: inline-flex; align-items: center; gap: 8px; }
.about-block .about-chev{
  font-size: 13px;
  color: var(--text-mute);
  transition: transform .3s var(--ease, ease);
  flex: 0 0 auto;
}
.about-block.collapsed .about-chev{ transform: rotate(-90deg); }
html[dir="rtl"] .about-block.collapsed .about-chev{ transform: rotate(90deg); }
.about-block .about-content{ overflow: hidden; }
.about-block.collapsed .about-content{ display: none; }

/* ============================================================
   LATEST COURSES cards (ported from weekly-analysis.css so the
   courses-section rendered on the details page is styled the same
   as the index page).
   ============================================================ */
.latest-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f6f7fb 0%, #eef1f8 100%);
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .latest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .latest-grid { grid-template-columns: 1fr; }
}

.ep-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.ep-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ep-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--ec1, var(--brand-2)), var(--ec2, var(--brand-3)));
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.ep-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, .18), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(0, 0, 0, .25), transparent 60%);
    z-index: -1;
}

.ep-thumb .ep-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
}

.ep-thumb .ep-scrim {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(3, 6, 20, .10), rgba(3, 6, 20, .42));
}

.ep-thumb .ep-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    display: grid;
    place-items: center;
    color: var(--ec1, var(--brand-2));
    font-size: 18px;
    padding-left: 4px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .30);
    transition: transform .25s var(--ease);
}

.ep-card:hover .ep-thumb .ep-play {
    transform: scale(1.10);
}

.ep-thumb .ep-dur {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    border-radius: 5px;
}

.ep-thumb .ep-cat-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 9.5px;
    font-weight: 800;
    padding: 4px 10px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border-radius: 999px;
    letter-spacing: .5px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.ep-thumb .ep-play,
.ep-thumb .ep-dur,
.ep-thumb .ep-cat-pill {
    position: relative;
    z-index: 1;
}

.ep-meta {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ep-meta .ep-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ep-meta .ep-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 12px;
    color: var(--text-soft);
    font-weight: 600;
}

.ep-meta .ep-bottom .author {
    color: var(--text-2);
    font-weight: 700;
}

/* Level badge: short label pinned to the top-start corner (auto-mirrors in RTL). */
.ep-thumb .ep-cat-pill {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
