:root {
    --tv-bg: #0F0F12;
    --tv-card-bg: #1A1A20;
    --tv-primary: #E8B573;
    --tv-secondary: #A89C94;
    --tv-soft: #D9A566;
    --tv-text: #E8E6E3;
    --tv-text-soft-bak: #A09FAB;
    --tv-text-soft: #cacad2;
    --tv-border: rgba(232, 181, 115, 0.15);
    --tv-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    --tv-footer-start: #0A0A0F;
    --tv-footer-end: #1A1A24;
}

body {
    background: var(--tv-bg);
    color: var(--tv-text);
    min-height: 100vh;
}

.tv-header {
    background: rgba(26, 26, 32, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--tv-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.tv-brand {
    color: var(--tv-primary);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .2px;
}

.tv-brand:hover {
    color: var(--tv-soft);
}

.tv-favorite-btn {
    border: 0;
    border-radius: 999px;
    background: var(--tv-primary);
    color: var(--tv-bg);
    font-weight: 600;
    padding: .48rem .95rem;
}

.tv-favorite-btn:hover {
    background: var(--tv-soft);
    color: var(--tv-bg);
}

.tv-burger-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(232, 181, 115, 0.3);
    border-radius: 10px;
    padding: 0 10px;
    background: rgba(232, 181, 115, 0.1);
}

.tv-burger-btn:hover {
    background: rgba(232, 181, 115, 0.2);
}

.tv-burger-line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 10px;
    background: var(--tv-primary);
}

.content-wrap {
    min-height: calc(100vh - 220px);
}

.tv-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.tv-sidebar {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: .2rem;
}

.tv-menu-card {
    background: var(--tv-card-bg);
    border: 1px solid var(--tv-border);
    border-radius: 20px;
    box-shadow: var(--tv-shadow);
    padding: 1rem;
}

.tv-categories {
    margin-top: 1rem;
}

.tv-menu-title {
    font-size: .86rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 .8rem;
    color: var(--tv-text-soft);
}

.tv-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tv-menu-list li + li {
    margin-top: .38rem;
}

.tv-menu-link, .header-link {
    display: block;
    text-decoration: none;
    color: var(--tv-text-soft);
    padding: 0.3rem;
    border-radius: 10px;
    line-height: 1.05;
    transition: all .18s ease;
}

.tv-menu-link:hover, .header-link:hover {
    color: var(--tv-primary);
    background: rgba(232, 181, 115, 0.1);
}

.tv-menu-link.is-active {
    background: var(--tv-primary);
    color: var(--tv-bg);
    font-weight: 600;
}

.tv-main-content {
    min-width: 0;
}

.fav-count {
    background: var(--tv-primary);
    color: var(--tv-bg);
    border-radius: 999px;
    padding: .1rem .54rem;
    font-size: .77rem;
    margin-left: .35rem;
    font-weight: bold;
}

.tv-menu-link .fav-count {
    float: right;
}

.serial-card {
    border: 1px solid var(--tv-border);
    box-shadow: var(--tv-shadow);
    border-radius: 14px;
    overflow: hidden;
    background: var(--tv-card-bg);
}

.serial-card h2 a {
    color: var(--tv-text-soft);
}

.serial-card a.category {
    color: var(--tv-primary);
    text-decoration: none;
}

.serial-footer {
    background: linear-gradient(120deg, var(--tv-footer-start), var(--tv-footer-end));
    color: var(--tv-text-soft);
    border-top: 1px solid var(--tv-border);
}

.serial-footer a {
    color: var(--tv-text);
    text-decoration: none;
}

.serial-footer a:hover {
    color: var(--tv-primary);
}

.btn-tv {
    border: 0;
    border-radius: 30px;
    background: var(--tv-primary);
    color: var(--tv-bg);
    padding: .5rem 1.2rem;
    font-weight: 600;
}

.btn-tv:hover {
    background: var(--tv-soft);
    color: var(--tv-bg);
}

.btn-tv-outline {
    border: 1px solid var(--tv-primary);
    border-radius: 30px;
    background: transparent;
    color: var(--tv-primary);
    padding: .45rem 1rem;
    font-weight: 600;
}

.btn-tv-outline:hover {
    background: var(--tv-primary);
    color: var(--tv-bg);
}

@media (max-width: 991.98px) {
    .tv-layout {
        grid-template-columns: 1fr;
    }

    .tv-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .tv-categories {
        margin-top: .9rem;
    }
}

.serial-name {
    overflow-wrap: anywhere;
}

.text-primary {
    color: var(--tv-primary);
}

.search {
    margin-bottom: .9rem; 
}

.serial-page {
    border-radius: 20px;
    border: 1px solid var(--tv-border);
    background: var(--tv-card-bg);
    box-shadow: var(--tv-shadow);
    padding: 1.25rem;
}

.serial-hero {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: stretch;
}

.serial-hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--tv-border);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.5);
}

.serial-hero-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: .4rem 0;
}

.serial-hero-top {
    display: flex;
    gap: .9rem;
    justify-content: space-between;
    align-items: flex-start;
}

.serial-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: .01em;
}

.serial-fav-btn {
    white-space: nowrap;
}

.serial-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.serial-meta-chip {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    border-radius: 12px;
    border: 1px solid var(--tv-border);
    background: rgba(26, 26, 32, 0.8);
    padding: .65rem .78rem;
    text-decoration: none;
    color: var(--tv-text);
}

.serial-meta-chip span {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--tv-text-soft);
}

.serial-meta-chip strong {
    font-size: .95rem;
}

.serial-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.serial-tag {
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid var(--tv-border);
    background: rgba(232, 181, 115, 0.1);
    color: var(--tv-text);
    padding: .34rem .78rem;
    font-size: .88rem;
    line-height: 1;
}

.serial-tag:hover {
    background: var(--tv-primary);
    color: var(--tv-bg);
}

.serial-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    gap: .95rem;
    margin-top: 1.2rem;
}

.serial-description,
.serial-facts,
.serial-people,
.serial-player-block {
    border: 1px solid var(--tv-border);
    border-radius: 14px;
    background: var(--tv-card-bg);
    padding: 1rem;
}

.serial-description h2,
.serial-facts h2,
.serial-people h2 {
    margin: 0 0 .72rem;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--tv-text-soft);
}

.serial-description p {
    margin: 0;
    color: var(--tv-text-soft);
    line-height: 1.6;
}

.serial-facts dl {
    margin: 0;
    display: grid;
    gap: .64rem;
}

.serial-facts dl div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: .5rem;
}

.serial-facts dt {
    margin: 0;
    font-size: .78rem;
    color: var(--tv-text-soft);
    text-transform: uppercase;
}

.serial-facts dd {
    margin: 0;
    font-weight: 600;
}

.serial-people {
    margin-top: .95rem;
}

.serial-people-list {
    display: flex;
    flex-wrap: wrap;
    gap: .48rem;
}

.serial-person {
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid var(--tv-border);
    color: var(--tv-primary);
    background: rgba(26, 26, 32, 0.8);
    padding: .3rem .7rem;
    font-size: .9rem;
}

.serial-person:hover {
    background: rgba(232, 181, 115, 0.2);
}

.serial-player-block {
    margin-top: .95rem;
}

.serial-player-head {
    display: flex;
    align-items: center;
    gap: .72rem;
    margin-bottom: .8rem;
}

.serial-player-head label {
    font-weight: 600;
    margin: 0;
}

.serial-select {
    max-width: 240px;
    border-radius: 10px;
}

.serial-player-block .video-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #080915;
    aspect-ratio: 16 / 9;
}

.serial-player-block .player {
    width: 100%;
    height: 100%;
}

.serial-player-block .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(5, 7, 24, .52);
    color: #fff;
    text-align: center;
    padding: 1rem;
}

.serial-player-block .overlay p {
    margin: 0;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .serial-page {
        padding: 1rem;
    }

    .serial-hero {
        grid-template-columns: 1fr;
    }

    .serial-hero-poster img {
        min-height: 240px;
        max-height: 420px;
    }

    .serial-hero-top {
        flex-direction: column;
        align-items: stretch;
    }

    .serial-fav-btn {
        width: 100%;
    }

    .serial-info-grid {
        grid-template-columns: 1fr;
    }

    .serial-facts dl div {
        grid-template-columns: 1fr;
        gap: .15rem;
    }

    .serial-player-head {
        flex-direction: column;
        align-items: stretch;
    }

    .serial-select {
        max-width: none;
    }
}

.card.person {
    width: fit-content;
    img {
        width: 210px;
    }
} 

.person-page {
    --person-ink: #1f1b1a;
    --person-muted: #5b514b;
    --person-paper: #fff6e8;
    --person-edge: #e7d7c7;
    --person-accent: #007a78;
    --person-accent-2: #f5a14e;
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(31, 27, 26, .08);
    background:
        radial-gradient(circle at 10% 5%, rgba(245, 161, 78, .18), transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(0, 122, 120, .12), transparent 40%),
        linear-gradient(140deg, #fffdf9 0%, var(--person-paper) 100%);
    box-shadow: 0 24px 60px rgba(31, 27, 26, .12);
    padding: 1.6rem;
    font-family: "Cormorant Garamond", "Georgia", serif;
    color: var(--person-ink);
    overflow: hidden;
}

.person-page::after {
    content: "";
    position: absolute;
    inset: auto -40% -60% auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 122, 120, .18), transparent 65%);
    opacity: .9;
    pointer-events: none;
}

.person-hero {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: center;
    position: relative;
    z-index: 1;
    animation: personRise .6s ease both;
}

.person-media {
    position: relative;
}

.person-photo-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(31, 27, 26, .12);
    box-shadow: 0 18px 36px rgba(31, 27, 26, .16);
    background: #fff;
    aspect-ratio: 3 / 4;
}

.person-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.person-accent {
    position: absolute;
    right: -14px;
    bottom: -14px;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(130deg, var(--person-accent), #1aa39f);
    box-shadow: 0 12px 24px rgba(0, 122, 120, .28);
}

.person-intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.person-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--person-muted);
}

.person-title {
    margin: 0;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    line-height: 1.05;
}

.person-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.person-fact {
    border-radius: 14px;
    border: 1px solid var(--person-edge);
    background: rgba(255, 255, 255, .8);
    padding: .7rem .85rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-height: 68px;
}

.person-key {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--person-muted);
}

.person-val {
    font-size: .98rem;
    font-weight: 600;
    color: var(--person-ink);
}

.person-section {
    margin-top: 1.6rem;
    padding: 1.2rem 1.2rem 1.4rem;
    border-radius: 18px;
    border: 1px solid rgba(31, 27, 26, .1);
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 18px 40px rgba(31, 27, 26, .08);
    position: relative;
    z-index: 1;
    animation: personRise .6s ease both;
}

.person-section-head {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1rem;
}

.person-section-title {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--person-ink);
}

.person-section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--person-accent), transparent);
}

.person-section-body {
    padding-top: .2rem;
}

@keyframes personRise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .person-page {
        padding: 1.2rem;
    }

    .person-hero {
        grid-template-columns: 1fr;
    }

    .person-photo-wrap {
        max-width: 380px;
        margin: 0 auto;
    }

    .person-accent {
        right: 12px;
        bottom: 12px;
    }

    .person-facts {
        grid-template-columns: 1fr;
    }
}

/* Serial list redesign */
.serial-list {
    --serial-ink: #22211f;
    --serial-muted: #6b645f;
    --serial-paper: #fff8ef;
    --serial-edge: rgba(34, 33, 31, .14);
    --serial-accent: #cc6a2f;
    --serial-accent-2: #0e7c7b;
    font-family: "Cormorant Garamond", "Georgia", serif;
}

.serial-list-head {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1rem;
}

.serial-list-title {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--serial-paper);
}

.serial-list-divider {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--serial-accent), transparent);
}

.serial-tile {
    border-radius: 18px;
    border: 1px solid var(--serial-edge);
    background:
        radial-gradient(circle at 20% 5%, rgba(204, 106, 47, .12), transparent 45%),
        linear-gradient(160deg, #fffdfb 0%, var(--serial-paper) 100%);
    box-shadow: 0 18px 38px rgba(34, 33, 31, .12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}

.serial-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(34, 33, 31, .16);
}

.serial-tile-media {
    position: relative;
    overflow: hidden;
}

.serial-tile-link {
    display: block;
}

.serial-tile-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 2 / 3;
}

.serial-tile-year {
    position: absolute;
    left: 12px;
    bottom: 12px;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(120deg, var(--serial-accent), #e07c38);
    padding: .28rem .6rem;
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(204, 106, 47, .28);
}

.serial-tile-star {
    position: absolute;
    left: 80px;
    bottom: 12px;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: crimson;
    background: white;
    padding: .28rem .6rem;
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(204, 106, 47, .28);
}

.serial-tile-body {
    padding: .95rem 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    flex: 1;
}

.serial-tile-top {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    justify-content: space-between;
}

.serial-tile-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.1;
}

.serial-tile-title a {
    color: var(--serial-ink);
    text-decoration: none;
}

.serial-tile-title a:hover {
    color: var(--serial-accent-2);
}

.serial-tile-fav {
    flex-shrink: 0;
}

.serial-tile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.serial-tile-genre {
    text-decoration: none;
    font-size: .85rem;
    color: var(--serial-ink);
    border: 1px solid rgba(14, 124, 123, .25);
    padding: .25rem .6rem;
    border-radius: 999px;
    background: rgba(14, 124, 123, .08);
}

.serial-tile-genre:hover {
    background: rgba(14, 124, 123, .2);
}

@media (max-width: 991.98px) {
    .serial-list-title {
        font-size: 1rem;
    }

    .serial-tile-body {
        padding: .8rem .85rem .9rem;
    }
}
button.btn-search {
    background: var(--tv-soft);
}

.vote-hand {
    opacity: 0.4;
    &.is-active {
        opacity: 1;
    }
}
.serial-info-grid a {
    color: var(--tv-primary);
    text-decoration: none;
}
nav.crumbs {
    li {
        color: white !important;
        &::before {
            color: white;
        }
        a {
            color: var(--tv-primary);
            text-decoration: none;
        }
    }
}
.breadcrumb-item+.breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider, ">");
    color: white !important;
}