:root {
    --color-black: #07080b;
    --color-white: #ffffff;
    --color-blue: #0d4c9c;
    --color-blue-strong: #083477;
    --color-gold: #c99a3c;
    --color-gold-soft: #f1d99b;
    --color-red: #b90d24;
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #eef2f7;
    --text: #111827;
    --muted: #667085;
    --line: #d8dee8;
    --shadow: 0 18px 48px rgba(9, 18, 32, 0.12);
    --shadow-soft: 0 12px 30px rgba(9, 18, 32, 0.1);
    --radius: 8px;
    --container: min(1180px, calc(100vw - 32px));
    --headline-height: 42px;
}

:root[data-theme="dark"] {
    --bg: #07080b;
    --surface: #11151d;
    --surface-2: #171d27;
    --text: #f7f7f8;
    --muted: #a8b3c4;
    --line: #283243;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
    --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
}

body {
    margin: 0;
    font-family: Arial, "Helvetica Neue", system-ui, sans-serif;
    line-height: 1.55;
    background:
        linear-gradient(180deg, rgba(13, 76, 156, 0.06), transparent 320px),
        var(--bg);
}

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

img {
    display: block;
    max-width: 100%;
}

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

button,
a,
input,
select,
textarea {
    outline-color: var(--color-gold);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: var(--headline-height);
    z-index: 45;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(18px);
}

.headline-ticker {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--headline-height);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    color: var(--text);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px);
}

.headline-ticker strong {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    padding-inline: max(16px, calc((100vw - 1180px) / 2 + 2px)) 18px;
    background: var(--color-blue);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
}

.headline-ticker-viewport {
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
}

.headline-ticker-track {
    display: flex;
    width: max-content;
    animation: headline-scroll 42s linear infinite;
}

.headline-ticker:hover .headline-ticker-track,
.headline-ticker:focus-within .headline-ticker-track {
    animation-play-state: paused;
}

.headline-ticker-set {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 28px;
    padding-inline: 28px;
}

.headline-ticker a,
.headline-ticker-empty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 850;
    white-space: nowrap;
}

.headline-ticker a:hover {
    color: var(--color-gold);
}

.headline-ticker a span {
    color: var(--color-gold);
    font-size: 1.2rem;
    line-height: 1;
}

@keyframes headline-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

html[dir="rtl"] .headline-ticker-track {
    animation-name: headline-scroll-rtl;
}

@keyframes headline-scroll-rtl {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .headline-ticker-track {
        animation: none;
    }
}

@media (max-width: 760px) {
    :root {
        --headline-height: 44px;
    }

    .headline-ticker strong {
        padding-inline: 12px;
    }

    .headline-ticker-set {
        gap: 22px;
        padding-inline: 22px;
    }
}

.topline,
.nav-row,
.site-footer,
.home-hero,
.content-band,
.article-layout,
.about-page,
.admin-shell {
    width: var(--container);
    margin-inline: auto;
}

.topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    background: var(--color-black);
    color: var(--color-gold-soft);
    font-weight: 800;
    letter-spacing: 0;
}

.brand strong {
    display: block;
    font-size: 1rem;
    line-height: 1.1;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 4px;
}

.header-actions,
.language-switcher,
.main-nav,
.nav-row,
.search-form,
.meta-line,
.footer-links,
.social-links,
.admin-toolbar,
.admin-toolbar-actions,
.form-actions,
.share-row,
.table-actions {
    display: flex;
    align-items: center;
}

.header-actions {
    gap: 10px;
}

.language-switcher {
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.language-switcher a {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.language-switcher a.is-active {
    background: var(--surface);
    color: var(--color-blue);
    box-shadow: 0 4px 14px rgba(9, 18, 32, 0.08);
}

.mobile-language-switcher {
    display: none;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.icon-button:hover {
    border-color: var(--color-gold);
}

.menu-toggle {
    display: none;
}

.nav-row {
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 14px;
}

.main-nav {
    gap: 6px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 9px 12px;
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.94rem;
}

.main-nav a.is-active,
.main-nav a:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

.search-form {
    width: min(360px, 100%);
    gap: 8px;
}

.search-form input,
.admin-panel input,
.admin-panel select,
.admin-panel textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
}

.search-form input {
    height: 42px;
    padding: 0 12px;
}

.live-search {
    position: relative;
}

.live-search-results {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    z-index: 80;
    display: grid;
    gap: 8px;
    max-height: min(480px, calc(100vh - 120px));
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.live-search-results[hidden] {
    display: none;
}

.live-search-group {
    display: grid;
    gap: 6px;
}

.live-search-group h3 {
    margin: 2px 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.live-search-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.live-search-item:hover,
.live-search-item.is-active {
    border-color: rgba(35, 135, 255, 0.36);
    background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.live-search-item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 7px;
    background: var(--surface-2);
}

.live-search-item span {
    display: grid;
    min-width: 0;
}

.live-search-item small,
.live-search-item em {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-search-item strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.93rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-search-empty {
    padding: 14px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.search-results-page {
    width: var(--container);
    margin: 36px auto 70px;
}

.search-result-section {
    margin-top: 22px;
}

.search-result-section h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.search-result-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.search-result-card:hover {
    border-color: rgba(35, 135, 255, 0.38);
}

.search-result-card img {
    width: 96px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--surface-2);
}

.search-result-card span {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.search-result-card small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.search-result-card strong {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.28;
}

.search-result-card em {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.9rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .search-result-list {
        grid-template-columns: 1fr;
    }

    .search-result-card {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .search-result-card img {
        width: 74px;
        height: 68px;
    }
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    gap: 24px;
    padding: 28px 0 18px;
}

.brand-banner {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-black);
    box-shadow: var(--shadow);
}

.brand-banner .banner-image {
    width: 100%;
    height: 100%;
}

.brand-banner .banner-image {
    object-fit: cover;
}

.brand-banner .banner-dark,
:root[data-theme="dark"] .brand-banner .banner-light {
    display: none;
}

:root[data-theme="dark"] .brand-banner .banner-dark {
    display: block;
}

.brand-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.62));
}

.brand-banner-copy {
    position: absolute;
    inset-inline: 24px;
    bottom: 22px;
    z-index: 1;
    max-width: 620px;
    color: var(--color-white);
}

.brand-banner-copy span,
.section-heading span,
.admin-toolbar span {
    display: inline-flex;
    color: var(--color-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand-banner-copy h1 {
    margin: 8px 0 6px;
    font-size: clamp(2rem, 5vw, 4.7rem);
    line-height: 0.95;
    max-width: 10ch;
}

.brand-banner-copy p {
    margin: 0;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.86);
}

.lead-story {
    display: grid;
    grid-template-rows: 210px 1fr;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.lead-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
}

.meta-line {
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.meta-line span:first-child,
.meta-line a:first-child {
    color: var(--color-blue);
}

.lead-content h2,
.section-heading h2,
.article-header h1,
.admin-toolbar h1 {
    margin: 0;
    line-height: 1.08;
}

.lead-content h2 {
    font-size: clamp(1.55rem, 3vw, 2.6rem);
}

.lead-content p {
    margin: 0;
    color: var(--muted);
}

.primary-link,
.read-link,
.primary-button,
.secondary-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: fit-content;
    border-radius: var(--radius);
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
}

.primary-link,
.read-link {
    color: var(--color-blue);
}

.primary-link {
    margin-top: auto;
    color: var(--color-white);
    background: var(--color-blue);
    padding: 10px 14px;
}

.primary-button {
    color: var(--color-white);
    background: var(--color-blue);
    padding: 10px 14px;
}

.secondary-button {
    color: var(--text);
    background: var(--surface);
    border-color: var(--line);
    padding: 10px 14px;
}

.danger-button {
    color: var(--color-white);
    background: var(--color-red);
    padding: 10px 14px;
}

.small {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.86rem;
}

.content-band {
    padding: 34px 0;
}

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

.section-heading h2 {
    margin-top: 4px;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.category-bar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
}

.category-bar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    font-weight: 800;
}

.category-bar a.is-active,
.category-bar a:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

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

.news-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.news-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--surface-2);
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-badge {
    position: absolute;
    inset-inline-start: 12px;
    bottom: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--color-blue);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 800;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.news-card h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.25;
}

.news-card p {
    margin: 0;
    color: var(--muted);
}

.empty-state,
.flash,
.admin-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.empty-state {
    padding: 26px;
    color: var(--muted);
}

.article-layout {
    max-width: 900px;
    padding: 34px 0 20px;
}

.article-header {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.article-header h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.article-header p {
    margin: 0;
    color: var(--muted);
    font-size: 1.13rem;
}

.article-media {
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-2);
}

.article-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-body {
    font-size: 1.08rem;
}

.article-body p {
    margin: 0 0 1.15em;
}

.about-page {
    padding: 34px 0 54px;
}

.about-hero {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: grid;
    align-content: end;
    gap: 14px;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        linear-gradient(120deg, rgba(13, 76, 156, 0.82), rgba(7, 8, 11, 0.92)),
        var(--surface-2);
    color: var(--color-white);
    box-shadow: var(--shadow);
}

.about-hero::after {
    content: "";
    position: absolute;
    inset-inline-end: -120px;
    bottom: -160px;
    width: 360px;
    height: 360px;
    border: 42px solid rgba(246, 201, 75, 0.18);
    border-radius: 50%;
}

.about-hero span,
.about-grid article span {
    color: var(--stream-gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.about-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 0.98;
}

.about-hero p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    font-weight: 700;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.about-grid article {
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.about-grid h2 {
    margin: 18px 0 10px;
    font-size: 1.35rem;
    line-height: 1.12;
}

.about-grid p {
    margin: 0;
    color: var(--muted);
}

.video-frame,
.video-player {
    width: 100%;
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-black);
}

.video-frame {
    aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-player {
    width: 100%;
    height: 100%;
    border: 0;
}

.share-row {
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.share-row a {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 0 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer p {
    margin: 4px 0 0;
}

.footer-links {
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-blue);
    font-weight: 800;
}

.admin-shell {
    padding: 28px 0 44px;
}

.login-shell {
    display: grid;
    place-items: center;
    min-height: 58vh;
}

.admin-toolbar {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-toolbar-actions {
    gap: 10px;
    flex-wrap: wrap;
}

.admin-panel {
    padding: 18px;
    box-shadow: 0 10px 30px rgba(9, 18, 32, 0.08);
}

.login-panel {
    width: min(430px, 100%);
    display: grid;
    gap: 14px;
}

.admin-panel label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.9rem;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea {
    padding: 10px 11px;
}

.admin-panel textarea {
    resize: vertical;
}

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

.checkbox-label {
    align-self: end;
    display: flex !important;
    grid-template-columns: none;
    flex-direction: row;
    align-items: center;
    min-height: 42px;
    padding: 8px 0;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

.current-image {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-2);
}

.current-image img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

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

.translation-panel {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.translation-panel legend {
    padding: 0 8px;
    color: var(--color-blue);
    font-weight: 900;
}

.form-actions {
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.table-wrap {
    overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
    text-align: start;
    vertical-align: middle;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
}

.admin-table small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.status-published {
    background: rgba(13, 76, 156, 0.12);
    color: var(--color-blue);
}

.status-draft {
    background: rgba(201, 154, 60, 0.14);
    color: #946609;
}

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

.flash {
    width: var(--container);
    margin: 16px auto 0;
    padding: 12px 14px;
    font-weight: 800;
}

.flash-success {
    border-color: rgba(13, 76, 156, 0.34);
    color: var(--color-blue);
}

.flash-error,
.error-panel {
    border-color: rgba(185, 13, 36, 0.35);
    color: var(--color-red);
}

html[dir="rtl"] .brand,
html[dir="rtl"] .meta-line,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .main-nav,
html[dir="rtl"] .search-form,
html[dir="rtl"] .footer-links,
html[dir="rtl"] .table-actions {
    direction: rtl;
}

@media (max-width: 980px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .brand-banner,
    .lead-story {
        min-height: auto;
    }

    .brand-banner {
        aspect-ratio: 16 / 8;
    }

    .category-bar,
    .news-grid,
    .news-grid.compact,
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root {
        --container: min(100vw - 22px, 680px);
    }

    .topline {
        gap: 12px;
    }

    .brand small {
        display: none;
    }

    .header-actions > .language-switcher {
        display: none;
    }

    .mobile-language-switcher {
        display: flex;
        width: 100%;
        overflow-x: auto;
    }

    .menu-toggle {
        display: grid;
    }

    .nav-row {
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding-top: 6px;
    }

    .nav-row.is-open {
        display: flex;
    }

    .main-nav,
    .search-form {
        width: 100%;
    }

    .main-nav a {
        flex: 1 1 45%;
        text-align: center;
    }

    .search-form {
        display: grid;
        grid-template-columns: 1fr 42px;
    }

    .home-hero {
        padding-top: 16px;
    }

    .brand-banner {
        aspect-ratio: 4 / 3;
    }

    .brand-banner-copy {
        inset-inline: 16px;
        bottom: 16px;
    }

    .brand-banner-copy h1 {
        max-width: 12ch;
    }

    .lead-story {
        grid-template-rows: 180px 1fr;
    }

    .category-bar,
    .news-grid,
    .news-grid.compact,
    .form-grid,
    .translations-grid {
        grid-template-columns: 1fr;
    }

    .category-bar {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .category-bar a {
        min-width: 158px;
    }

    .admin-toolbar,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-toolbar-actions {
        width: 100%;
    }

    .admin-toolbar-actions a {
        flex: 1 1 auto;
    }
}

@media (max-width: 460px) {
    .brand strong {
        max-width: 155px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 0.82rem;
    }

    .header-actions {
        gap: 6px;
    }

    .icon-button {
        width: 40px;
        height: 40px;
    }

    .lead-content,
    .admin-panel {
        padding: 14px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .about-hero {
        min-height: 280px;
        padding: 28px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Broadcast news refresh inspired by the reviewed reference site. */
:root {
    --container: min(1240px, calc(100vw - 32px));
    --broadcast-black: #050608;
    --broadcast-ink: #101319;
    --urgent-gold: #f2ae18;
    --signal-blue: #0d4c9c;
}

body {
    background: var(--bg);
}

.site-header {
    border-bottom: 0;
    background: var(--broadcast-black);
    color: var(--color-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.topline {
    min-height: 56px;
    padding: 7px 0;
}

.brand {
    color: var(--color-white);
}

.brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-color: var(--signal-blue);
    background: transparent;
    color: var(--urgent-gold);
    font-size: 0.8rem;
}

.brand strong {
    color: var(--color-white);
    font-size: 0.94rem;
}

.brand small {
    color: rgba(255, 255, 255, 0.68);
}

.site-header .language-switcher {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.site-header .language-switcher a {
    color: rgba(255, 255, 255, 0.72);
}

.site-header .language-switcher a.is-active {
    background: var(--signal-blue);
    color: var(--color-white);
    box-shadow: none;
}

.site-header .icon-button {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
}

.site-header .icon-button:hover {
    border-color: var(--urgent-gold);
}

.nav-row {
    padding: 0 0 8px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.88);
    border-radius: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
}

.main-nav a.is-active,
.main-nav a:hover {
    background: transparent;
    color: var(--color-white);
    border-bottom-color: var(--urgent-gold);
}

.site-header .search-form input {
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: var(--color-white);
}

.site-header .search-form input::placeholder {
    color: rgba(255, 255, 255, 0.54);
}

.breaking-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    width: var(--container);
    min-height: 38px;
    margin: 0 auto;
    padding: 0 14px;
    overflow: hidden;
    background: var(--urgent-gold);
    color: #050608;
    font-weight: 900;
}

.breaking-strip strong {
    flex: 0 0 auto;
    padding-inline-start: 10px;
    border-inline-start: 3px solid #050608;
    font-size: 1.18rem;
}

.breaking-strip a {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agency-strip {
    position: relative;
    width: var(--container);
    height: 86px;
    margin: 18px auto 8px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--broadcast-black);
}

.agency-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agency-strip .agency-dark,
:root[data-theme="dark"] .agency-strip .agency-light {
    display: none;
}

:root[data-theme="dark"] .agency-strip .agency-dark {
    display: block;
}

.news-splash {
    width: var(--container);
    margin: 24px auto 36px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) 174px minmax(0, 1.55fr);
    grid-template-areas: "headlines thumbs lead";
    gap: 12px;
    align-items: stretch;
}

.headline-rail {
    grid-area: headlines;
    display: grid;
    grid-template-rows: repeat(4, minmax(86px, 1fr));
    border-block: 1px solid var(--line);
}

.headline-rail a {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.headline-rail a:last-child {
    border-bottom: 0;
}

.headline-rail span {
    color: var(--signal-blue);
    font-size: 0.78rem;
    font-weight: 900;
}

.headline-rail strong {
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: 1.36;
}

.thumb-rail {
    grid-area: thumbs;
    display: grid;
    grid-template-rows: repeat(4, minmax(86px, 1fr));
    gap: 10px;
}

.thumb-rail a {
    min-height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-2);
}

.thumb-rail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.splash-lead {
    grid-area: lead;
    min-width: 0;
}

.splash-lead a {
    position: relative;
    display: block;
    min-height: 430px;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--broadcast-black);
}

.splash-lead img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.splash-lead a::after,
.news-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.76));
    pointer-events: none;
}

.splash-badge {
    position: absolute;
    inset-inline-start: 18px;
    top: 18px;
    z-index: 1;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--urgent-gold);
    color: #050608;
    font-size: 0.78rem;
    font-weight: 900;
}

.splash-lead h1 {
    position: absolute;
    inset-inline: 26px;
    bottom: 24px;
    z-index: 1;
    margin: 0;
    color: var(--color-white);
    font-size: clamp(1.8rem, 3.5vw, 3.15rem);
    line-height: 1.12;
    text-wrap: balance;
}

.content-band > .section-heading {
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.content-band > .section-heading::after {
    content: "";
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    background: var(--signal-blue);
}

.content-band > .section-heading span {
    display: none;
}

.content-band > .section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    font-weight: 900;
}

.category-bar a {
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(9, 18, 32, 0.06);
}

.news-card {
    border: 0;
    background: transparent;
}

.news-card-media {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.card-image-title {
    position: absolute;
    inset-inline: 14px;
    bottom: 12px;
    z-index: 1;
    color: var(--color-white);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

.news-card-body {
    padding: 14px 2px 0;
}

.news-card h3 {
    display: none;
}

.news-card p {
    color: var(--text);
    font-weight: 700;
}

.read-link {
    min-height: auto;
    font-size: 0.9rem;
}

.mobile-dock {
    display: none;
}

@media (max-width: 980px) {
    .news-splash {
        grid-template-columns: minmax(0, 1fr) 150px;
        grid-template-areas:
            "lead lead"
            "headlines thumbs";
    }

    .splash-lead a {
        min-height: 390px;
    }

    .headline-rail {
        grid-template-rows: repeat(4, minmax(76px, 1fr));
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: 70px;
    }

    .topline {
        width: 100%;
        padding: 8px 12px;
    }

    .brand strong,
    .brand small,
    .theme-toggle {
        display: none;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 0.75rem;
    }

    .nav-row {
        width: calc(100vw - 22px);
    }

    .breaking-strip {
        width: 100%;
        border-radius: 0;
        padding-inline: 10px;
    }

    .breaking-strip strong {
        font-size: 1.35rem;
    }

    .agency-strip {
        display: none;
    }

    .news-splash {
        width: 100%;
        margin: 28px 0 20px;
        display: block;
    }

    .headline-rail,
    .thumb-rail {
        display: none;
    }

    .splash-lead a {
        min-height: 220px;
        border-radius: 0;
    }

    .splash-badge {
        display: none;
    }

    .splash-lead h1 {
        inset-inline: 14px;
        bottom: 16px;
        font-size: 1.24rem;
        text-align: center;
    }

    .content-band > .section-heading {
        justify-content: flex-start;
        flex-direction: row-reverse;
        margin-bottom: 22px;
    }

    .content-band > .section-heading::after {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .news-grid {
        gap: 16px;
    }

    .news-card-media {
        border-radius: var(--radius);
        aspect-ratio: 16 / 11;
    }

    .card-image-title {
        font-size: 1.18rem;
        text-align: center;
    }

    .mobile-dock {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 40;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        height: 62px;
        background: rgba(5, 6, 8, 0.96);
        color: var(--color-white);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .mobile-dock a {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 2px;
        color: rgba(255, 255, 255, 0.82);
        font-size: 1.1rem;
    }

    .mobile-dock small {
        font-size: 0.72rem;
    }

    .mobile-dock a:hover,
    .mobile-dock a:focus {
        color: var(--urgent-gold);
    }
}

/* Modern newsroom v2 */
:root {
    --container: min(1220px, calc(100vw - 28px));
    --panel: color-mix(in srgb, var(--surface) 92%, var(--surface-2));
    --soft-line: color-mix(in srgb, var(--line) 70%, transparent);
}

body {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 64%, transparent) 0, transparent 330px),
        var(--bg);
}

.site-header {
    position: sticky;
    background: #020409;
}

.topline {
    min-height: 64px;
}

.brand-mark {
    border: 0;
    border-radius: 7px;
    background: var(--urgent-gold);
    color: #020409;
    font-size: 0.88rem;
    font-weight: 950;
}

.brand strong {
    font-size: 1.02rem;
    font-weight: 900;
}

.main-nav {
    gap: 2px;
}

.main-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border-bottom: 0;
    border-radius: 7px;
    padding: 8px 12px;
}

.main-nav a.is-active,
.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: transparent;
}

.breaking-strip {
    width: 100%;
    min-height: 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: center;
}

.breaking-strip strong {
    font-size: 1.05rem;
}

.news-splash {
    grid-template-columns: minmax(0, 1.58fr) minmax(270px, 0.84fr) minmax(150px, 0.46fr);
    grid-template-areas: "lead headlines thumbs";
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 34px;
}

.splash-lead {
    grid-area: lead;
}

.splash-lead a {
    min-height: 520px;
    border: 1px solid var(--soft-line);
    box-shadow: var(--shadow);
}

.splash-lead .article-visual,
.splash-lead .news-visual-placeholder,
.news-card-media .article-visual,
.news-card-media .news-visual-placeholder,
.thumb-rail .article-visual,
.thumb-rail .news-visual-placeholder,
.article-media .article-visual,
.article-media .news-visual-placeholder {
    width: 100%;
    height: 100%;
}

.article-visual {
    object-fit: cover;
}

.news-visual-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100%;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(13, 76, 156, 0.96), rgba(7, 8, 11, 0.98) 58%, rgba(201, 154, 60, 0.84)),
        var(--broadcast-black);
    color: var(--color-white);
}

.news-visual-placeholder::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: inherit;
}

.news-visual-placeholder::after {
    content: "";
    position: absolute;
    inset: auto -20% 18% -20%;
    height: 34%;
    transform: rotate(-7deg);
    background: rgba(255, 255, 255, 0.08);
}

.news-visual-placeholder span {
    position: absolute;
    inset-inline-start: 24px;
    top: 22px;
    z-index: 1;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--color-gold-soft);
    font-size: 0.78rem;
    font-weight: 900;
}

.news-visual-placeholder strong {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(2.3rem, 7vw, 5rem);
    letter-spacing: 0;
}

.news-visual-thumb strong,
.news-visual-card strong {
    font-size: 2.05rem;
}

.news-visual-thumb span,
.news-visual-card span {
    inset-inline-start: 12px;
    top: 12px;
    font-size: 0.68rem;
}

.splash-lead h1 {
    inset-inline: 28px;
    bottom: 76px;
    max-width: 900px;
    font-size: clamp(2.15rem, 4vw, 4.15rem);
    font-weight: 950;
}

.splash-lead p {
    position: absolute;
    inset-inline: 28px;
    bottom: 28px;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.02rem;
    font-weight: 700;
}

.headline-rail {
    min-height: 520px;
    border: 1px solid var(--soft-line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(9, 18, 32, 0.08);
}

.headline-rail a {
    padding: 18px;
    transition: background 0.18s ease, color 0.18s ease;
}

.headline-rail a:hover {
    background: var(--surface-2);
}

.headline-rail span {
    color: var(--color-gold);
}

.headline-rail strong {
    font-size: 1.08rem;
    font-weight: 900;
}

.thumb-rail {
    min-height: 520px;
    gap: 12px;
}

.thumb-rail a {
    border: 1px solid var(--soft-line);
    box-shadow: 0 10px 24px rgba(9, 18, 32, 0.08);
}

.side-lead {
    display: none;
}

.content-band {
    padding-top: 14px;
}

.content-band > .section-heading {
    justify-content: space-between;
    flex-direction: row;
    border-top: 1px solid var(--soft-line);
}

.content-band > .section-heading::before {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--soft-line);
}

.content-band > .section-heading::after {
    background: var(--urgent-gold);
}

.content-band > .section-heading div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-band > .section-heading h2 {
    white-space: nowrap;
}

.category-bar {
    grid-template-columns: repeat(6, minmax(116px, 1fr));
}

.category-bar a {
    min-height: 46px;
    border-radius: 999px;
    box-shadow: none;
}

.category-bar a.is-active,
.category-bar a:hover {
    background: var(--broadcast-black);
    color: var(--color-white);
}

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

.news-card {
    display: grid;
    gap: 12px;
}

.news-card-media {
    aspect-ratio: 16 / 9;
    border: 1px solid var(--soft-line);
    box-shadow: none;
}

.news-card-media::after {
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.82));
}

.card-image-title {
    inset-inline: 16px;
    bottom: 15px;
    font-size: 1.1rem;
}

.news-card-body {
    gap: 8px;
    padding: 0 2px;
}

.news-card p {
    color: var(--muted);
    font-weight: 600;
}

.news-card .meta-line {
    order: -1;
}

.article-media {
    border: 1px solid var(--soft-line);
}

.article-media .news-visual-placeholder {
    aspect-ratio: 16 / 9;
}

@media (max-width: 1080px) {
    .news-splash {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
        grid-template-areas:
            "lead lead"
            "headlines thumbs";
    }

    .splash-lead a {
        min-height: 430px;
    }

    .headline-rail,
    .thumb-rail {
        min-height: 390px;
    }
}

@media (max-width: 760px) {
    :root {
        --container: min(100vw - 20px, 680px);
    }

    .site-header {
        position: sticky;
    }

    .topline {
        min-height: 56px;
    }

    .breaking-strip {
        justify-content: flex-start;
        gap: 10px;
    }

    .breaking-strip strong {
        font-size: 1.12rem;
    }

    .news-splash {
        width: var(--container);
        margin-top: 16px;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "lead"
            "headlines";
        gap: 14px;
    }

    .splash-lead a {
        min-height: 360px;
        border-radius: var(--radius);
    }

    .splash-lead h1 {
        inset-inline: 18px;
        bottom: 66px;
        font-size: 1.55rem;
        text-align: start;
    }

    .splash-lead p {
        inset-inline: 18px;
        bottom: 20px;
        font-size: 0.88rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .splash-badge {
        display: inline-flex;
    }

    .headline-rail {
        min-height: auto;
        display: grid;
        grid-template-rows: none;
    }

    .headline-rail a {
        min-height: 82px;
        padding: 14px;
    }

    .thumb-rail {
        display: none;
    }

    .content-band {
        padding-top: 8px;
    }

    .content-band > .section-heading {
        justify-content: flex-start;
        flex-direction: row-reverse;
    }

    .content-band > .section-heading::before {
        display: none;
    }

    .category-bar {
        grid-template-columns: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-media {
        aspect-ratio: 16 / 10.5;
    }

    .card-image-title {
        font-size: 1.08rem;
    }

    .mobile-dock {
        height: 64px;
    }
}

/* Stream-style rebuild */
:root {
    --stream-bg: #111821;
    --stream-bg-deep: #0b1119;
    --stream-panel: #172231;
    --stream-panel-soft: #1d2a3a;
    --stream-text: #f5f7fb;
    --stream-muted: #9aa8ba;
    --stream-blue: #2387ff;
    --stream-blue-2: #175fce;
    --stream-gold: #f6c94b;
    --stream-line: rgba(255, 255, 255, 0.08);
}

html,
:root[data-theme="light"],
:root[data-theme="dark"] {
    --bg: var(--stream-bg);
    --surface: var(--stream-panel);
    --surface-2: var(--stream-panel-soft);
    --text: var(--stream-text);
    --muted: var(--stream-muted);
    --line: var(--stream-line);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 26% 0, rgba(35, 135, 255, 0.14), transparent 34%),
        linear-gradient(180deg, #151f2b 0, #111821 34%, #0d141d 100%);
    color: var(--stream-text);
}

.site-header {
    background: rgba(12, 18, 27, 0.92);
    border-bottom: 1px solid var(--stream-line);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.topline {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) minmax(230px, 330px) auto;
    gap: 22px;
    min-height: 68px;
}

.brand {
    min-width: max-content;
}

.brand-mark {
    position: relative;
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--stream-blue), #0bd3ff);
    color: transparent;
    font-size: 0;
}

.brand-mark::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-inline-start: 13px solid var(--color-white);
    transform: translateX(2px);
}

.brand strong {
    color: var(--stream-text);
    font-size: 1.05rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand small {
    display: none;
}

.nav-row {
    display: none;
}

.desktop-main-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    gap: 2px;
}

.desktop-main-nav a,
.mobile-main-nav a {
    min-height: 40px;
    border-radius: 0;
    padding: 10px 12px;
    color: rgba(245, 247, 251, 0.78);
    font-size: 0.9rem;
    font-weight: 800;
}

.desktop-main-nav a.is-active,
.mobile-main-nav a.is-active {
    color: var(--stream-text);
    border-bottom: 2px solid var(--stream-blue);
}

.desktop-main-nav a:hover,
.mobile-main-nav a:hover {
    color: var(--stream-text);
    background: transparent;
}

.desktop-search-form {
    grid-column: 3;
    grid-row: 1;
    width: min(330px, 27vw);
    margin-inline-start: auto;
}

.site-header .search-form input {
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.055);
}

.header-actions {
    grid-column: 4;
    grid-row: 1;
}

.language-switcher {
    border-radius: 7px;
}

.site-header .language-switcher a.is-active {
    background: rgba(35, 135, 255, 0.22);
    color: var(--stream-text);
}

.theme-toggle {
    display: none;
}

.breaking-strip {
    display: none;
}

.stream-stage,
.stream-rail {
    width: var(--container);
    margin-inline: auto;
}

.homepage-theme-banner {
    width: var(--container);
    aspect-ratio: 1600 / 702;
    margin: 28px auto 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    box-shadow: var(--shadow-soft);
}

.homepage-theme-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.homepage-theme-dark,
:root[data-theme="dark"] .homepage-theme-light {
    display: none;
}

:root[data-theme="dark"] .homepage-theme-dark {
    display: block;
}

.stream-stage {
    position: relative;
    padding: 28px 0 16px;
}

.stream-carousel {
    direction: ltr;
    overflow: hidden;
    scroll-behavior: smooth;
    padding-inline: 54px;
    margin-inline: -54px;
}

.stream-hero-track {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.stream-hero {
    position: relative;
    flex: 0 0 calc(100% - 108px);
    min-height: 430px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--stream-panel);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
    opacity: 0.42;
    transform: scale(0.94);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.stream-hero.is-active {
    opacity: 1;
    transform: scale(1);
}

.stream-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(10, 15, 22, 0.92) 0, rgba(10, 15, 22, 0.72) 35%, rgba(10, 15, 22, 0.16) 72%),
        linear-gradient(180deg, transparent 55%, rgba(10, 15, 22, 0.52));
}

html[dir="rtl"] .stream-hero::before {
    background:
        linear-gradient(270deg, rgba(10, 15, 22, 0.92) 0, rgba(10, 15, 22, 0.72) 35%, rgba(10, 15, 22, 0.16) 72%),
        linear-gradient(180deg, transparent 55%, rgba(10, 15, 22, 0.52));
}

.stream-hero .article-visual,
.stream-hero .news-visual-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.stream-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    min-height: 430px;
    max-width: 590px;
    padding: 48px;
}

html[dir="rtl"] .stream-hero-content {
    direction: rtl;
    text-align: right;
}

.hero-kicker {
    margin-bottom: 10px;
    color: rgba(245, 247, 251, 0.76);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.stream-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 0.95;
    font-weight: 950;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: rgba(245, 247, 251, 0.82);
    font-size: 0.9rem;
    font-weight: 800;
}

.stars,
.poster-stars {
    color: var(--stream-gold);
    letter-spacing: 0;
}

.stream-hero p {
    max-width: 560px;
    margin: 0 0 22px;
    color: rgba(245, 247, 251, 0.74);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.play-button,
.list-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 7px;
    padding: 10px 18px;
    font-weight: 900;
}

.play-button {
    background: var(--stream-blue);
    color: var(--color-white);
}

.list-button {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--stream-text);
    background: rgba(255, 255, 255, 0.04);
}

.stream-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.36);
    color: var(--stream-text);
    font-size: 2.25rem;
    cursor: pointer;
}

.stream-arrow-prev {
    inset-inline-start: -24px;
}

.stream-arrow-next {
    inset-inline-end: -24px;
}

.stream-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 18px 0 0;
}

.stream-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(245, 247, 251, 0.26);
    cursor: pointer;
}

.stream-dots button.is-active {
    width: 24px;
    background: var(--stream-text);
}

.stream-rail {
    padding: 12px 0 24px;
}

.stream-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stream-section-heading h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 950;
}

.rail-controls {
    display: flex;
    gap: 12px;
    color: rgba(245, 247, 251, 0.58);
    font-size: 1.4rem;
}

.landscape-row,
.poster-row,
.stream-category-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px 8px;
    scrollbar-width: none;
}

.landscape-row::-webkit-scrollbar,
.poster-row::-webkit-scrollbar,
.stream-category-row::-webkit-scrollbar {
    display: none;
}

.landscape-row {
    grid-auto-columns: minmax(230px, 1fr);
}

.stream-landscape-card {
    min-width: 0;
}

.stream-landscape-card > a {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 9px;
    background: var(--stream-panel);
}

.stream-landscape-card h3 {
    margin: 8px 0 0;
    color: var(--stream-text);
    font-size: 0.92rem;
    line-height: 1.25;
}

.progress-line {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
}

.progress-line i {
    display: block;
    width: 62%;
    height: 100%;
    background: var(--stream-blue);
}

.poster-row {
    grid-auto-columns: 165px;
}

.stream-poster-card {
    min-width: 0;
}

.poster-art {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 9px;
    background: var(--stream-panel);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.poster-art:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.poster-art .article-visual,
.poster-art .news-visual-placeholder,
.stream-landscape-card .article-visual,
.stream-landscape-card .news-visual-placeholder {
    width: 100%;
    height: 100%;
}

.poster-play {
    position: absolute;
    inset-inline-end: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(35, 135, 255, 0.88);
    color: var(--color-white);
    font-size: 0.9rem;
}

.poster-copy h3 {
    margin: 9px 0 3px;
    font-size: 0.83rem;
    line-height: 1.25;
    text-transform: uppercase;
}

.poster-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    color: rgba(245, 247, 251, 0.62);
    font-size: 0.72rem;
}

.news-visual-placeholder {
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.14), transparent 24%),
        linear-gradient(145deg, #16243a 0, #0b1018 54%, #1f4068 100%);
}

.news-visual-placeholder::before {
    inset: 16px;
    border-color: rgba(255, 255, 255, 0.12);
}

.news-visual-placeholder::after {
    inset: auto -18% 8% -18%;
    height: 38%;
    background: rgba(35, 135, 255, 0.18);
}

.news-visual-placeholder strong {
    font-size: clamp(2.3rem, 9vw, 5.4rem);
}

.news-visual-politics {
    background:
        radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.14), transparent 22%),
        linear-gradient(145deg, #1f2f55 0, #111821 54%, #5f2634 100%);
}

.news-visual-economy {
    background:
        radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.13), transparent 22%),
        linear-gradient(145deg, #173b39 0, #0d151e 52%, #8f6b1f 100%);
}

.news-visual-culture {
    background:
        radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.13), transparent 22%),
        linear-gradient(145deg, #3f275b 0, #101721 55%, #b85628 100%);
}

.news-visual-society {
    background:
        radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.13), transparent 22%),
        linear-gradient(145deg, #173766 0, #101720 54%, #2387ff 100%);
}

.news-visual-sports {
    background:
        radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.13), transparent 22%),
        linear-gradient(145deg, #1f4737 0, #101720 54%, #83ad2a 100%);
}

.stream-category-row {
    grid-auto-columns: minmax(190px, 1fr);
}

.stream-category-tile {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 84px;
    overflow: hidden;
    border-radius: 9px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(35, 135, 255, 0.28), rgba(255, 255, 255, 0.04));
    color: var(--stream-text);
}

.stream-category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent);
}

.stream-category-tile span {
    position: relative;
    z-index: 1;
}

.stream-category-tile span {
    font-size: 1.2rem;
    font-weight: 950;
}

.stream-category-politics {
    background: linear-gradient(135deg, #27375f, #6c2436);
}

.stream-category-economy {
    background: linear-gradient(135deg, #163f3a, #8f6b1f);
}

.stream-category-culture {
    background: linear-gradient(135deg, #4d2b64, #b85628);
}

.stream-category-society {
    background: linear-gradient(135deg, #173766, #2387ff);
}

.stream-category-sports {
    background: linear-gradient(135deg, #1e503b, #83ad2a);
}

.site-footer {
    border-top-color: var(--stream-line);
    color: rgba(245, 247, 251, 0.58);
}

.footer-links a {
    color: rgba(245, 247, 251, 0.78);
}

@media (max-width: 1080px) {
    .topline {
        grid-template-columns: auto minmax(180px, 1fr) auto;
    }

    .desktop-main-nav {
        display: none;
    }

    .desktop-search-form {
        grid-column: 2;
        width: min(360px, 100%);
    }

    .header-actions {
        grid-column: 3;
    }

    .menu-toggle {
        display: grid;
    }

    .nav-row {
        width: var(--container);
        margin-inline: auto;
        padding: 0 0 12px;
    }

    .nav-row.is-open {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-main-nav {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .topline {
        display: flex;
        min-height: 58px;
        padding-inline: 10px;
    }

    .brand strong {
        display: block;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .desktop-search-form {
        display: none;
    }

    .nav-row {
        width: var(--container);
        padding: 4px 0 12px;
    }

    .nav-row .search-form {
        width: 100%;
    }

    .stream-stage {
        width: 100%;
        padding-top: 10px;
    }

    .stream-carousel {
        padding-inline: 18px;
        margin-inline: 0;
    }

    .stream-hero {
        flex-basis: calc(100% - 36px);
        min-height: 390px;
        border-radius: 0;
    }

    .stream-hero-content {
        min-height: 390px;
        padding: 28px 22px;
        align-content: end;
    }

    .stream-hero h1 {
        font-size: 2.3rem;
    }

    .stream-hero p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .stream-arrow {
        display: none;
    }

    .stream-rail {
        padding-bottom: 20px;
    }

    .landscape-row {
        grid-auto-columns: 78vw;
    }

    .poster-row {
        grid-auto-columns: 38vw;
        gap: 13px;
    }

    .stream-category-row {
        grid-auto-columns: 58vw;
    }

    .stream-section-heading h2 {
        font-size: 1.18rem;
    }

    .poster-copy h3 {
        font-size: 0.75rem;
    }

    .poster-meta {
        font-size: 0.66rem;
    }
}

/* Readability and image fixes */
.stream-hero-content {
    max-width: min(540px, 48%);
}

.stream-hero h1 {
    font-size: clamp(1.7rem, 2.8vw, 3.05rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

html[dir="rtl"] .stream-hero h1 {
    font-size: clamp(1.55rem, 2.45vw, 2.72rem);
    line-height: 1.16;
}

.stream-hero p {
    font-size: 0.92rem;
    line-height: 1.65;
}

.poster-copy h3,
.stream-landscape-card h3,
.card-image-title {
    overflow-wrap: anywhere;
}

.article-visual {
    background: var(--stream-panel);
}

@media (max-width: 1080px) {
    .stream-hero-content {
        max-width: min(580px, 64%);
    }
}

@media (max-width: 760px) {
    .stream-hero-content {
        max-width: none;
    }

    .stream-hero h1,
    html[dir="rtl"] .stream-hero h1 {
        font-size: clamp(1.28rem, 7vw, 2rem);
        line-height: 1.18;
    }

    .stream-hero p {
        font-size: 0.82rem;
        line-height: 1.55;
    }
}

/* Brand, theme, and social controls */
.brand-mark {
    overflow: hidden;
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    padding: 3px;
    border: 1px solid color-mix(in srgb, var(--stream-line) 75%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 88%, var(--color-white));
}

.brand-mark::before {
    display: none;
}

.brand-mark::after {
    display: none;
}

.brand-mark.is-logo-missing::after {
    content: "TYA";
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--stream-blue), #0bd3ff);
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 950;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.theme-toggle {
    display: grid;
}

:root[data-theme="dark"] {
    color-scheme: dark;
}

:root[data-theme="light"] {
    color-scheme: light;
    --stream-bg: #f5f7fb;
    --stream-bg-deep: #e8eef6;
    --stream-panel: #ffffff;
    --stream-panel-soft: #eef3fa;
    --stream-text: #101827;
    --stream-muted: #5d6b7c;
    --stream-line: rgba(16, 24, 39, 0.12);
    --bg: var(--stream-bg);
    --surface: var(--stream-panel);
    --surface-2: var(--stream-panel-soft);
    --text: var(--stream-text);
    --muted: var(--stream-muted);
    --line: var(--stream-line);
    --shadow: 0 20px 55px rgba(16, 24, 39, 0.12);
}

:root[data-theme="light"] body {
    background:
        radial-gradient(circle at 26% 0, rgba(35, 135, 255, 0.1), transparent 34%),
        linear-gradient(180deg, #ffffff 0, var(--stream-bg) 38%, var(--stream-bg-deep) 100%);
    color: var(--stream-text);
}

:root[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.92);
    color: var(--stream-text);
    border-bottom-color: var(--stream-line);
    box-shadow: 0 14px 36px rgba(16, 24, 39, 0.1);
}

:root[data-theme="light"] .brand strong,
:root[data-theme="light"] .desktop-main-nav a.is-active,
:root[data-theme="light"] .mobile-main-nav a.is-active,
:root[data-theme="light"] .desktop-main-nav a:hover,
:root[data-theme="light"] .mobile-main-nav a:hover {
    color: var(--stream-text);
}

:root[data-theme="light"] .desktop-main-nav a,
:root[data-theme="light"] .mobile-main-nav a {
    color: rgba(16, 24, 39, 0.72);
}

:root[data-theme="light"] .site-header .search-form input,
:root[data-theme="light"] .site-header .icon-button,
:root[data-theme="light"] .site-header .language-switcher {
    border-color: var(--stream-line);
    background: rgba(238, 243, 250, 0.92);
    color: var(--stream-text);
}

:root[data-theme="light"] .site-header .search-form input::placeholder,
:root[data-theme="light"] .site-header .language-switcher a {
    color: rgba(16, 24, 39, 0.62);
}

:root[data-theme="light"] .site-header .language-switcher a.is-active {
    background: rgba(35, 135, 255, 0.13);
    color: var(--stream-blue-2);
}

:root[data-theme="light"] .brand-mark {
    background: #ffffff;
    border-color: rgba(16, 24, 39, 0.1);
    box-shadow: 0 8px 20px rgba(16, 24, 39, 0.08);
}

:root[data-theme="light"] .category-bar a.is-active,
:root[data-theme="light"] .category-bar a:hover {
    background: var(--stream-text);
    color: var(--color-white);
}

:root[data-theme="light"] .stream-hero,
:root[data-theme="light"] .stream-landscape-card,
:root[data-theme="light"] .stream-poster-card,
:root[data-theme="light"] .stream-category-card {
    box-shadow: 0 18px 42px rgba(16, 24, 39, 0.13);
}

:root[data-theme="light"] .stream-hero {
    background: #0b1119;
    color: var(--color-white);
    opacity: 0.62;
}

:root[data-theme="light"] .stream-hero.is-active {
    opacity: 1;
}

:root[data-theme="light"] .stream-hero::before {
    background:
        linear-gradient(90deg, rgba(5, 8, 13, 0.94) 0, rgba(5, 8, 13, 0.78) 38%, rgba(5, 8, 13, 0.24) 76%),
        linear-gradient(180deg, transparent 48%, rgba(5, 8, 13, 0.58));
}

:root[data-theme="light"][dir="rtl"] .stream-hero::before {
    background:
        linear-gradient(270deg, rgba(5, 8, 13, 0.94) 0, rgba(5, 8, 13, 0.78) 38%, rgba(5, 8, 13, 0.24) 76%),
        linear-gradient(180deg, transparent 48%, rgba(5, 8, 13, 0.58));
}

:root[data-theme="light"] .stream-hero-content,
:root[data-theme="light"] .stream-hero h1,
:root[data-theme="light"] .hero-meta,
:root[data-theme="light"] .stream-hero p,
:root[data-theme="light"] .list-button,
:root[data-theme="light"] .stream-arrow {
    color: var(--color-white);
}

:root[data-theme="light"] .hero-kicker {
    color: rgba(255, 255, 255, 0.78);
}

:root[data-theme="light"] .hero-meta,
:root[data-theme="light"] .stream-hero p {
    color: rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .list-button {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .stream-arrow {
    background: rgba(5, 8, 13, 0.58);
}

:root[data-theme="light"] .stream-dots button {
    background: rgba(16, 24, 39, 0.24);
}

:root[data-theme="light"] .stream-dots button.is-active {
    background: var(--stream-text);
}

:root[data-theme="light"] .site-footer {
    border-top-color: var(--stream-line);
    color: var(--stream-muted);
}

:root[data-theme="light"] .footer-links a {
    color: var(--stream-blue-2);
}

:root[data-theme="light"] .mobile-dock {
    background: rgba(255, 255, 255, 0.96);
    color: var(--stream-text);
    border-top-color: var(--stream-line);
}

:root[data-theme="light"] .mobile-dock a {
    color: rgba(16, 24, 39, 0.72);
}

:root[data-theme="light"] .mobile-dock a:hover,
:root[data-theme="light"] .mobile-dock a:focus {
    color: var(--stream-blue-2);
}

.site-footer {
    align-items: center;
    flex-wrap: wrap;
}

.social-links {
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--stream-line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    color: var(--stream-text);
    line-height: 1;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.social-link:hover,
.social-link:focus {
    transform: translateY(-2px);
    border-color: var(--stream-blue);
    background: color-mix(in srgb, var(--stream-blue) 18%, var(--surface));
}

.social-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.social-icon-fallback {
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 900;
}

.social-link-facebook {
    color: #1877f2;
}

.social-link-instagram {
    color: #e4405f;
}

.social-link-tiktok {
    color: #00f2ea;
}

.social-link-x {
    color: var(--stream-text);
}

.social-link-snapchat {
    background: #fffc00;
    border-color: #fffc00;
    color: #111111;
}

.social-link-facebook:hover,
.social-link-facebook:focus {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
}

.social-link-instagram:hover,
.social-link-instagram:focus {
    background: #e4405f;
    border-color: #e4405f;
    color: #ffffff;
}

.social-link-tiktok:hover,
.social-link-tiktok:focus,
.social-link-x:hover,
.social-link-x:focus {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.social-link-snapchat:hover,
.social-link-snapchat:focus {
    background: #fffc00;
    border-color: #fffc00;
    color: #111111;
}

:root[data-theme="light"] .social-link-x {
    color: #111111;
}

@media (max-width: 760px) {
    .brand-mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .theme-toggle {
        display: grid;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 86px;
    }
}

/* Writers page */
.writers-page {
    padding: 34px 0 28px;
}

.writers-hero {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    display: grid;
    align-content: end;
    gap: 14px;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        linear-gradient(120deg, rgba(13, 76, 156, 0.76), rgba(7, 8, 11, 0.94)),
        var(--surface-2);
    color: var(--color-white);
    box-shadow: var(--shadow);
}

.writers-hero::after {
    content: "";
    position: absolute;
    inset-inline-start: -120px;
    bottom: -150px;
    width: 340px;
    height: 340px;
    border: 42px solid rgba(246, 201, 75, 0.18);
    border-radius: 50%;
}

.writers-hero span,
.writer-card-copy > span {
    color: var(--stream-gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.writers-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 0.98;
}

.writers-hero p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    font-weight: 700;
}

.writers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.writer-card {
    overflow: hidden;
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.writer-card:hover,
.writer-card:focus {
    transform: translateY(-3px);
    border-color: rgba(13, 114, 231, 0.5);
    box-shadow: var(--shadow);
}

.writer-photo {
    aspect-ratio: 16 / 11;
    background: var(--surface-2);
}

.writer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.writer-card-copy {
    padding: 22px;
}

.writer-card-copy h2 {
    margin: 10px 0;
    font-size: 1.45rem;
    line-height: 1.12;
}

.writer-card-copy p {
    margin: 0;
    color: var(--muted);
}

.writer-portfolio {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.writer-portfolio strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.writer-profile-page {
    padding: 34px 0 28px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: var(--color-blue);
    font-weight: 900;
    text-decoration: none;
}

.writer-profile-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(13, 76, 156, 0.24), rgba(246, 201, 75, 0.1)),
        var(--surface);
    box-shadow: var(--shadow);
}

.writer-profile-photo {
    min-height: 430px;
    background: var(--surface-2);
}

.writer-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.writer-profile-intro {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: clamp(28px, 5vw, 58px);
}

.writer-profile-intro span,
.writer-profile-section span {
    color: var(--stream-gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.writer-profile-intro h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.4rem);
    line-height: 0.94;
}

.writer-profile-intro p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 1.08rem;
}

.writer-profile-role {
    color: var(--text) !important;
    font-size: 1.3rem !important;
    font-weight: 900;
}

.writer-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 18px;
    margin-top: 22px;
    align-items: start;
}

.writer-profile-main,
.writer-cv-panel {
    display: grid;
    gap: 18px;
}

.writer-profile-section,
.writer-cv-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.writer-profile-section h2,
.writer-cv-panel h2 {
    margin: 10px 0 12px;
    font-size: 1.6rem;
}

.writer-profile-section p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.writer-work-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.writer-work-list span {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-weight: 900;
}

.writer-work-detail-list {
    display: grid;
    gap: 12px;
}

.writer-work-item {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
}

.writer-work-item h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.25;
}

.writer-work-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.writer-cv-panel dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.writer-cv-panel div {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.writer-cv-panel div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.writer-cv-panel dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.writer-cv-panel dd {
    margin: 5px 0 0;
    color: var(--text);
    font-weight: 800;
}

.writers-grid-compact {
    margin-top: 0;
}

@media (max-width: 980px) {
    .writers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .writer-profile-hero,
    .writer-profile-grid {
        grid-template-columns: 1fr;
    }

    .writer-profile-photo {
        min-height: 340px;
    }
}

@media (max-width: 760px) {
    .mobile-dock {
        grid-template-columns: repeat(4, 1fr);
    }

    .writers-hero {
        min-height: 260px;
        padding: 28px;
    }

    .writers-grid {
        grid-template-columns: 1fr;
    }

    .writer-profile-photo {
        min-height: 260px;
    }

    .writer-profile-section,
    .writer-cv-panel {
        padding: 20px;
    }
}

/* Shared Kirkuk content integration */
.writers-page,
.writer-profile-page {
    width: var(--container);
    margin-inline: auto;
}

.writer-period {
    display: block;
    color: var(--stream-gold) !important;
    font-size: 0.92rem !important;
    font-weight: 850;
}

.writer-cv-panel a {
    color: var(--stream-blue-bright);
    overflow-wrap: anywhere;
}

.site-profile-kirkuk-fuzuli .homepage-theme-banner {
    aspect-ratio: 1600 / 913;
    background: #050505;
}

.site-profile-kirkuk-fuzuli .homepage-theme-image {
    object-fit: contain;
}

/* Canonical Kirkuk publishing console */
.admin-body {
    min-height: 100vh;
    margin: 0;
    background: var(--stream-bg, #f3f5f8);
    color: var(--text, #172033);
    font-family: Cairo, system-ui, sans-serif;
}

.admin-body .admin-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 30px auto;
}

.admin-body .admin-top,
.admin-body .admin-actions,
.admin-body .form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-body .admin-actions {
    justify-content: flex-start;
}

.admin-body .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--line, #d7dce5);
    border-radius: 8px;
    background: var(--surface, #fff);
    color: var(--text, #172033);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.admin-body .button.primary {
    border-color: #0d4c9c;
    background: #0d4c9c;
    color: #fff;
}

.admin-body .button.danger,
.admin-body .inline-form button {
    color: #b42318;
}

.admin-body .admin-table,
.admin-body .language-panel,
.admin-body .login-card {
    border: 1px solid var(--line, #d7dce5);
    border-radius: 10px;
    background: var(--surface, #fff);
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(0, 0, 0, 0.08));
}

.admin-body .admin-table {
    margin-top: 22px;
    overflow-x: auto;
}

.admin-body table {
    width: 100%;
    border-collapse: collapse;
}

.admin-body th,
.admin-body td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line, #d7dce5);
    text-align: start;
    vertical-align: top;
}

.admin-body th {
    background: var(--surface-2, #f7f8fa);
}

.admin-body .inline-form {
    display: inline;
}

.admin-body .inline-form button {
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.admin-body .login-card {
    width: min(420px, calc(100% - 32px));
    margin: 8vh auto;
    padding: 24px;
}

.admin-body .login-card img {
    display: block;
    width: 110px;
    max-height: 110px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.admin-body .editor label,
.admin-body .login-card label {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
    font-weight: 800;
}

.admin-body .form-row > label {
    flex: 1 1 220px;
}

.admin-body input,
.admin-body select,
.admin-body textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--line, #cfd5df);
    border-radius: 8px;
    background: var(--surface, #fff);
    color: var(--text, #172033);
    font: inherit;
    box-sizing: border-box;
}

.admin-body textarea {
    resize: vertical;
}

.admin-body .language-panel {
    margin: 18px 0;
    padding: 18px;
}

.admin-body .error {
    padding: 12px 14px;
    border-radius: 8px;
    background: #b42318;
    color: #fff;
}

.admin-body .notice {
    padding: 12px 14px;
    border: 1px solid var(--line, #d7dce5);
    border-radius: 8px;
    background: var(--surface, #fff);
}

.admin-body .writer-admin-thumb {
    width: 120px;
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
}
