@import url("https://fonts.googleapis.com/css2?family=Varela+Round&display=swap");

:root {
    --ink: #071328;
    --text: #111827;
    --muted: #667085;
    --line: #e6e7eb;
    --panel: #ffffff;
    --soft: #f6f7fb;
    --cream: #fff4d3;
    --navy: #19324f;
    --navy-2: #0f2744;
    --berry: #b0294a;
    --magenta: #d72763;
    --coral: #f04a38;
    --orange: #d45a05;
    --gold: #ffd43a;
    --blue: #2047e8;
    --green: #16825d;
    --shadow: 0 18px 46px rgba(9, 19, 40, .10);
    --shadow-strong: 0 24px 58px rgba(9, 19, 40, .18);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: "Varela Round", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
}

img, video, audio {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background:
        linear-gradient(108deg, rgba(75, 19, 48, .96), rgba(196, 75, 51, .95) 54%, rgba(230, 116, 57, .98)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 96px);
    box-shadow: 0 10px 28px rgba(73, 22, 30, .14);
}

.site-header::after {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--magenta), var(--coral), var(--gold));
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: min(1260px, calc(100% - 42px));
    min-height: 112px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    width: clamp(172px, 16vw, 230px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18));
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a, .side-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .22);
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.main-nav a:hover, .main-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}

.main-nav .account-link {
    padding: 10px 16px;
    background: #b1334c;
    border: 1px solid rgba(120, 24, 42, .45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.main-nav .btn {
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
}

.site-main {
    min-height: calc(100vh - 250px);
}

.container {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
}

.section {
    padding: 38px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-head h2, .page-title h1, .hero-copy h1 {
    margin: 0;
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: 0;
}

.section-head h2 {
    font-size: clamp(1.45rem, 2vw, 2.15rem);
}

.section-head p, .page-title p, .hero-copy p {
    margin: 8px 0 0;
    color: var(--muted);
}

.page-title {
    padding-top: 20px;
}

.page-title h1 {
    color: #aa1d5a;
    font-size: clamp(2rem, 3vw, 3.2rem);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(116deg, rgba(217, 39, 99, .96), rgba(221, 81, 62, .94) 48%, rgba(238, 139, 63, .98)),
        repeating-linear-gradient(120deg, rgba(255,255,255,.12) 0 1px, transparent 1px 92px);
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 8% -10%, transparent 0 34%, rgba(255, 214, 96, .28) 35% 35.5%, transparent 36%),
        radial-gradient(ellipse at 96% 10%, transparent 0 38%, rgba(255, 214, 96, .20) 39% 39.5%, transparent 40%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(290px, .72fr);
    align-items: center;
    gap: 42px;
    min-height: 520px;
    padding: 58px 0 68px;
}

.hero-copy h1 {
    max-width: 760px;
    color: var(--cream);
    font-size: clamp(2.45rem, 5vw, 5.1rem);
    text-shadow: 0 3px 0 rgba(91, 25, 41, .32);
}

.hero-copy p {
    max-width: 650px;
    color: rgba(255, 255, 255, .92);
    font-size: 1.14rem;
}

.hero-actions, .actions, .button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-panel {
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-strong);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 12px 26px rgba(32, 71, 232, .18);
}

.btn:hover {
    filter: brightness(.98);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: var(--navy);
    border-color: #cfd5df;
    box-shadow: 0 10px 22px rgba(9, 19, 40, .08);
}

.btn-blue {
    background: var(--blue);
}

.btn-coral {
    background: linear-gradient(180deg, #ff653f, var(--orange));
    border-color: #bd4800;
    box-shadow: 0 16px 30px rgba(212, 90, 5, .24);
}

.btn-small {
    min-height: 38px;
    padding: 8px 13px;
    font-size: .88rem;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

.card {
    background: var(--panel);
    border: 1px solid #eceef3;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(9, 19, 40, .08);
    overflow: hidden;
}

.card-body {
    padding: 18px;
}

.media-card {
    display: grid;
    grid-template-rows: auto 1fr;
}

.media-card h3, .card h2, .card h3 {
    color: var(--ink);
    line-height: 1.15;
}

.poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #eceaf5;
}

.wide-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eceaf5;
}

.meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .9rem;
}

.pill, .badge, .catalog-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff3f8;
    color: var(--navy);
    font-weight: 800;
    font-size: .8rem;
}

.catalog-chip, .filter-panel .btn, .catalog-pills a {
    background: var(--navy);
    color: #fff;
    border: 1px solid #0b1e35;
    box-shadow: 0 8px 18px rgba(13, 37, 65, .16);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
}

.badge-approved, .badge-published, .badge-active, .badge-resolved {
    background: #e6f7f0;
    color: var(--green);
}

.badge-rejected, .badge-closed {
    background: #ffeceb;
    color: #b4271a;
}

.badge-in_review, .badge-waiting_review, .badge-changes_requested, .badge-open, .badge-answered {
    background: #fff2e6;
    color: #a95400;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat {
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(9, 19, 40, .06);
}

.stat strong {
    display: block;
    color: var(--orange);
    font-size: 1.7rem;
}

.form-card, .content-panel {
    width: min(920px, calc(100% - 32px));
    margin: 32px auto;
    padding: 26px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ebeef4;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    color: #17233b;
    font-weight: 800;
}

.field input, .field select, .field textarea,
.search-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7dce5;
    border-radius: 8px;
    padding: 11px 13px;
    background: #fff;
    color: var(--ink);
    outline: none;
}

.field input:focus, .field select:focus, .field textarea:focus,
.search-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(32, 71, 232, .10);
}

.field textarea {
    min-height: 132px;
    resize: vertical;
}

.search-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
}

.catalog-shell {
    margin-top: 28px;
    padding: clamp(18px, 3vw, 28px);
    border-radius: 8px;
    background: #f4f5fa;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.catalog-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: min(860px, 100%);
    margin: 0 auto 18px;
    padding: 8px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(9, 19, 40, .08);
}

.catalog-search input {
    border: 0;
    min-height: 44px;
    padding: 0 18px;
}

.catalog-search input:focus {
    box-shadow: none;
}

.catalog-search .btn {
    border-radius: 999px;
    min-width: 116px;
}

.catalog-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 16px;
}

.catalog-order {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: 12px 0 22px;
}

.advanced-filters {
    margin: 0 0 24px;
    text-align: right;
}

.advanced-filters summary {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 6px 10px;
    color: var(--blue);
    cursor: pointer;
    font-weight: 800;
}

.advanced-filters .form-grid {
    margin: 12px 0;
    padding: 16px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.filter-panel {
    align-self: start;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(9, 19, 40, .06);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(9, 19, 40, .06);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th, td {
    padding: 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f7f8fb;
    color: #2d3445;
    font-size: .88rem;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(160px, .7fr));
    gap: 28px;
    padding: 42px clamp(18px, 5vw, 72px);
    background:
        linear-gradient(110deg, #2a0713, #53182b 50%, #8d3525),
        repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 90px);
    color: #fff;
    border-top: 5px solid var(--gold);
}

.footer-brand img {
    width: 210px;
    height: auto;
    display: block;
    margin-bottom: 12px;
}

.site-footer p, .site-footer a {
    color: rgba(255, 255, 255, .82);
}

.footer-col {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-col h3 {
    margin: 0 0 8px;
    color: var(--cream);
    font-size: 1rem;
    text-transform: uppercase;
}

.flash {
    width: min(1180px, calc(100% - 32px));
    margin: 16px auto;
    padding: 13px 15px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 10px 24px rgba(9, 19, 40, .06);
}

.flash-success {
    border-color: #b8ead7;
    background: #ecfff7;
}

.flash-error {
    border-color: #ffc3bf;
    background: #fff0ef;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    width: min(1280px, calc(100% - 36px));
    margin: 28px auto 46px;
}

.side-nav {
    position: sticky;
    top: 140px;
    align-self: start;
    display: grid;
    gap: 7px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.side-nav strong {
    color: #aa1d5a;
    margin-bottom: 6px;
}

.side-nav a {
    justify-content: flex-start;
    color: var(--navy);
    background: #f6f8fb;
    text-shadow: none;
    text-transform: none;
}

.side-nav a:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-1px);
}

.dashboard-content {
    min-width: 0;
}

.progress {
    height: 11px;
    border-radius: 999px;
    background: #e5e7ee;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    width: 12.5%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--magenta), var(--orange));
}

.step {
    display: none;
}

.step.is-active {
    display: block;
}

.comments {
    display: grid;
    gap: 12px;
}

.comment {
    padding: 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
}

.empty-state {
    padding: 26px;
    text-align: center;
    border: 1px dashed #cbd2df;
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: #100c18;
}

.split {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
    gap: 26px;
}

.profile-head {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    object-fit: cover;
    background: #eee;
    border: 5px solid #fff;
    box-shadow: 0 10px 24px rgba(9, 19, 40, .12);
}

.member-card {
    overflow: hidden;
    text-align: center;
    background: #fff;
}

.member-cover {
    display: grid;
    place-items: center;
    min-height: 108px;
    background:
        linear-gradient(115deg, rgba(218, 46, 91, .96), rgba(238, 120, 58, .96)),
        repeating-linear-gradient(110deg, rgba(255,255,255,.13) 0 1px, transparent 1px 64px);
}

.member-cover img {
    width: 148px;
    height: auto;
}

.member-card .avatar {
    margin-top: -42px;
}

.member-card h3 {
    margin: 10px 0 6px;
}

.onair-card {
    min-height: 360px;
    display: grid;
    align-content: end;
    background:
        linear-gradient(180deg, rgba(7, 19, 40, .08), rgba(7, 19, 40, .88)),
        url("../img/cover-placeholder.svg") center / cover no-repeat;
    color: #fff;
}

.onair-card h2, .onair-card .meta, .onair-card p {
    color: #fff;
}

.schedule-card {
    background: #f1f1f3;
}

.schedule-row {
    display: grid;
    grid-template-columns: 150px minmax(90px, 120px) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #d7d7dc;
}

.schedule-row p {
    margin: 0;
}

.ranking-panel {
    padding: clamp(18px, 3vw, 30px);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 54px rgba(9, 19, 40, .08);
}

.ranking-panel .section-head {
    align-items: center;
}

.ranking-panel .section-head h2 {
    margin-left: auto;
    font-size: clamp(2rem, 3vw, 3.2rem);
    text-shadow: 0 2px 0 rgba(32, 71, 232, .16);
}

.ranking-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 36px);
}

.ranking-item {
    position: relative;
}

.ranking-item a {
    display: grid;
    gap: 12px;
    font-weight: 800;
}

.ranking-number {
    position: absolute;
    left: -28px;
    top: 35%;
    z-index: 2;
    color: var(--orange);
    font-size: clamp(3.8rem, 7vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 0 rgba(117, 42, 0, .16);
}

.login-page .site-main {
    min-height: calc(100vh - 118px);
}

.login-scene {
    min-height: calc(100vh - 118px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    align-items: center;
    gap: clamp(28px, 6vw, 92px);
    padding: clamp(38px, 7vw, 94px) clamp(20px, 8vw, 128px);
    background:
        linear-gradient(116deg, rgba(217, 39, 99, .96), rgba(221, 81, 62, .94) 48%, rgba(238, 139, 63, .98)),
        repeating-linear-gradient(120deg, rgba(255,255,255,.12) 0 1px, transparent 1px 92px);
    border-bottom: 5px solid var(--gold);
}

.login-copy {
    color: #fff;
}

.login-copy h1 {
    max-width: 620px;
    margin: 0;
    color: var(--cream);
    font-size: clamp(2.4rem, 4.6vw, 4.75rem);
    line-height: 1.05;
    text-shadow: 0 3px 0 rgba(91, 25, 41, .28);
}

.login-copy p {
    max-width: 560px;
    color: rgba(255, 255, 255, .9);
    font-size: 1.05rem;
}

.story-strip {
    display: flex;
    gap: 12px;
    margin-top: 34px;
    align-items: end;
}

.story-strip img {
    width: clamp(72px, 8vw, 112px);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 18px 34px rgba(71, 20, 28, .26);
}

.login-card {
    background: #fff;
    padding: clamp(24px, 3vw, 36px);
    border-radius: 8px;
    box-shadow: 0 28px 58px rgba(64, 18, 28, .28);
}

.login-card h1 {
    margin: 0 0 6px;
    color: var(--ink);
}

.login-card .button-row {
    justify-content: space-between;
    align-items: center;
}

.vpat-form h3 {
    margin: 24px 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7f8fb;
    color: var(--navy);
    font-size: 1rem;
}

.vpat-form textarea[name="considerations"] {
    min-height: 190px;
}

@media (max-width: 1120px) {
    .header-inner {
        min-height: 96px;
    }

    .main-nav a {
        font-size: .82rem;
        padding-inline: 9px;
    }
}

@media (max-width: 980px) {
    .hero-inner, .grid-4, .grid-3, .search-layout, .dashboard-layout, .split, .login-scene {
        grid-template-columns: 1fr;
    }

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

    .side-nav {
        position: static;
    }

    .filter-panel {
        display: none;
    }

    .filter-panel.is-open {
        display: block;
    }

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

@media (max-width: 760px) {
    .header-inner {
        width: min(100% - 28px, 1260px);
        min-height: 82px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: grid;
    }

    .main-nav a {
        justify-content: flex-start;
        color: var(--navy);
        text-shadow: none;
        background: #f7f8fb;
    }

    .main-nav .account-link {
        background: #b1334c;
        color: #fff;
    }

    .hero-copy h1 {
        font-size: 2.35rem;
    }

    .grid-2, .grid-3, .grid-4, .form-grid, .stat-strip, .site-footer {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .form-card, .content-panel {
        width: calc(100% - 24px);
        padding: 18px;
    }

    .catalog-search, .catalog-order {
        grid-template-columns: 1fr;
        border-radius: 8px;
    }

    .login-scene {
        padding: 30px 16px;
    }

    .story-strip {
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .schedule-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .ranking-strip {
        grid-template-columns: 1fr;
    }

    .ranking-number {
        left: 10px;
        top: 10px;
        font-size: 4rem;
    }
}
