:root {
    color-scheme: light;
    --navy: #0b294f;
    --ink: #101e31;
    --orange: #ff942f;
    --rust: #974317;
    --paper: #f4f5f6;
    --border: #dce2e8;
    --muted: #4b5968;
    --padding: clamp(18px, 3.45vw, 52px);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #f6f7f8;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; object-fit: cover; }
:focus-visible { outline: 3px solid #2072c7; outline-offset: 3px; }
.header :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: #ffba79; }
.skip { position: fixed; z-index: 4; top: 10px; left: 10px; background: white; padding: 12px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site { max-width: 1440px; width: calc(100% - 40px); margin: 16px auto; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 34px #10243a2b; background: var(--paper); }
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; vertical-align: -.2em; }
.header { background: var(--navy); color: white; display: flex; align-items: center; justify-content: space-between; min-height: 84px; padding: 10px var(--padding); gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-icon { width: 51px; height: 51px; border: 3px solid #ffa551; border-radius: 12px; display: inline-grid; place-items: center; color: #ffa551; flex: 0 0 auto; font-size: 32px; }
.brand strong { display: block; font-size: clamp(24px, 2.7vw, 40px); line-height: 1; letter-spacing: .01em; }
.brand small { display: block; color: #ffb36d; font-size: clamp(11px, 1vw, 15px); font-weight: 700; margin-top: 3px; }
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.85vw, 29px); flex-wrap: wrap; }
.nav a { position: relative; padding: 12px 0; font-weight: 700; font-size: clamp(14px, 1.12vw, 18px); }
.nav a:hover, .nav a[aria-current='page'] { color: #ffae63; }
.nav a[aria-current='page']::after { content: ''; position: absolute; bottom: 3px; inset-inline: 0; height: 2px; background: #ffa354; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-icon { border: 1px solid #4c6787; border-radius: 9px; padding: 10px 14px; font-size: 21px; display: inline-flex; }
.search-icon:hover { background: #17416e; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 8px; padding: 10px 17px; min-height: 42px; font-weight: 700; line-height: 1.15; text-align: center; }
.button.orange { color: #15223a; background: linear-gradient(105deg,#ffae54,#ff8828); border-color: #fd973c; }
.button.orange:hover { background: #ffb260; }
.header .button.orange { white-space: nowrap; min-height: 47px; font-size: clamp(14px, 1.3vw, 20px); }
.button.outline { border-color: #caa587; color: var(--rust); background: #fffaf5; }
.button.outline:hover { background: #ffe9d3; }
.button.small { padding: 6px 11px; min-height: 34px; font-size: 13px; }
.mobile-toggle { display: none; }
.hero { color: white; min-height: 344px; background: linear-gradient(90deg,#061f40a3 0%,#10325d55 47%,transparent 72%), url('estudio.webp') center center / cover no-repeat; background-color: #0a2446; display: grid; align-items: center; }
.hero-inner { padding: 32px var(--padding) 20px; }
.hero h1 { font-size: clamp(42px,4vw,64px); line-height: .93; letter-spacing: -.035em; margin-bottom: 15px; text-wrap: balance; }
.hero p { max-width: 600px; font-size: clamp(15px,1.32vw,20px); line-height: 1.3; margin-bottom: 20px; }
.search-form { display: flex; width: min(100%, 574px); box-shadow: 0 3px 12px #0003; }
.search-field { display: flex; align-items: center; flex: 1; min-width: 0; gap: 10px; padding: 0 13px; background: #fff; color: #303c4b; border-radius: 8px 0 0 8px; }
.search-field input { font-weight: 400; flex: 1; width: 100%; min-width: 0; height: 43px; border: 0; background: transparent; color: var(--ink); }
.search-form .button { border-radius: 0 9px 9px 0; }
.hero-numbers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hero-numbers span { background: #2d5279; border-radius: 7px; padding: 7px 9px; font-size: 13px; font-weight: 700; }
.hero-numbers span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 5px; }
.hero-numbers b { color: #ffd39d; }
.home-grid { display: grid; grid-template-columns: minmax(0, 2.26fr) minmax(0,1fr); column-gap: clamp(16px,2.25vw,36px); padding: 14px var(--padding) 24px; background: linear-gradient(#f3f4f5,#f8f8f8); }
.home-grid > .notice { grid-column: 1/-1; }
.rank-home { padding-top: 15px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.home-grid h2 { line-height: 1.08; letter-spacing: -.025em; }
.rank-home > .section-head h2 { font-size: clamp(22px,2.1vw,34px); }
.rank-home > .section-head span { font-size: 13px; text-align: right; }
.showcase { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1fr); gap: clamp(12px,1.65vw,27px); align-items: start; }
.live { padding-top: 39px; min-width: 0; }
.live h2 { font-size: clamp(22px,1.85vw,29px); }
.live-caption { font-size: 13px; margin: 6px 0 12px; line-height: 1.35; }
.live-row { background: #fff; border: 1px solid #eceef0; border-radius: 7px; padding: 7px; margin-bottom: 5px; min-height: 72px; display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 3px 9px; box-shadow: 0 2px 5px #16293d08; align-items: center; }
.mini-photo { grid-row: 1/3; align-self: stretch; }
.mini-photo img { border-radius: 6px; width: 100%; height: 100%; min-height: 56px; aspect-ratio: 1; }
.live-data { display: contents; }
.live-data > a { grid-column: 2; grid-row: 1; font-size: 14px; line-height: 1.1; align-self: start; }
.live-data small { grid-column: 2; grid-row: 1; align-self: end; font-size: 11px; line-height: 1.15; color: #283545; overflow-wrap: anywhere; padding-top: 17px; }
.live-row form, .live-row .voted { grid-area: 1/3; align-self: start; }
.live-row .button { white-space: nowrap; }
.progress-line { grid-row: 2; grid-column: 2/4; display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 10px; white-space: nowrap; }
.track { flex: 1; min-width: 12px; height: 7px; border-radius: 8px; overflow: hidden; background: #edf0f2; }
.track i, .chart-track i { display: block; height: 100%; background: linear-gradient(90deg,#ffab4c,#eb781d); border-radius: inherit; }
.section-link { display: flex; align-items: center; justify-content: center; min-height: 60px; color: var(--rust); font-weight: 700; margin-top: 9px; background: #ffffff6b; border-radius: 7px; }
.section-link:hover { background: white; }
.podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: clamp(8px,1vw,16px); min-height: 309px; padding-top: 30px; }
.podium > .empty { grid-column: 1/-1; margin-bottom: auto; }
.podium-card { position: relative; min-width: 0; border: 1px solid #ffffff65; border-radius: 9px; text-align: center; min-height: 260px; padding: 30px 8px 17px; box-shadow: 0 10px 16px #192b3d24; background: linear-gradient(150deg,#e8e9eb,#a4aab0); color: #132538; transition: transform .18s ease; }
.podium-card:hover { transform: translateY(-3px); }
.podium-card.place-1 { background: linear-gradient(145deg,#ffda7d,#eaa433); min-height: 282px; color: #3e290a; }
.podium-card.place-3 { background: linear-gradient(145deg,#c79a79,#93634a); color: #24160e; }
.medal { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); background: linear-gradient(130deg,#f9fafb,#7d8590); border: 1px solid #ffffff85; border-radius: 10px; box-shadow: 0 3px 6px #0004; padding: 5px 10px; line-height: 1.15; color: #fff; text-shadow: 0 1px 3px #0009; font-size: 28px; font-weight: 800; }
.place-1 .medal { background: linear-gradient(135deg,#ffe190,#af6d09); }
.place-3 .medal { background: linear-gradient(135deg,#c99467,#64351a); }
.podium-card img { width: 100%; height: clamp(98px,8.3vw,139px); border-radius: 6px; object-position: center 35%; margin-bottom: 10px; }
.place-1 img { height: clamp(112px,9.5vw,151px); }
.podium-card strong, .podium-card small { display: block; overflow-wrap: anywhere; }
.podium-card strong { font-size: clamp(13px,1.1vw,18px); margin-bottom: 4px; }
.podium-card small { font-size: clamp(10px,.77vw,13px); min-height: 25px; line-height: 1.25; }
.vote-count { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #fff; background: #253e5c; border-radius: 6px; padding: 6px 7px; font-weight: 700; font-size: clamp(11px,1vw,16px); margin-top: 7px; white-space: nowrap; }
.place-1 .vote-count { background: #6b471b; }
.voted { color: #19593c; font-weight: 700; font-size: 12px; }
.right-home { min-width: 0; }
.home-stats h2 { font-size: 25px; }
.home-stats > p, .home-blog .section-head p { font-size: 13px; line-height: 1.25; margin-top: 3px; }
.stats-breakdown { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 11px; margin-top: 9px; }
.stats-breakdown h3 { font-size: 12px; margin-bottom: 5px; }
.chart-row { display: grid; grid-template-columns: minmax(48px,auto) minmax(0,1fr) 31px; align-items: center; gap: 4px; font-size: 11px; margin-bottom: 2px; }
.chart-row > span:first-child { overflow-wrap: anywhere; }
.chart-track { height: 9px; background: #e8ebef; border-radius: 3px; overflow: hidden; }
.chart-row:nth-of-type(n+3) .chart-track i { background: #235887; }
.legend { border-left: 1px solid #e2e5eb; padding-left: 8px; }
.legend div { display: flex; gap: 5px; align-items: center; font-size: 11px; margin: 3px 0; }
.legend i { background: #235887; width: 10px; height: 10px; border-radius: 2px; }
.legend div:nth-of-type(2) i { background: #ef832c; }
.legend div:nth-of-type(3) i { background: #778ba0; }
.stats-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin-top: 12px; }
.stats-totals > div { padding: 7px 8px; border-radius: 6px; background: #fff; border: 1px solid #edf0f2; min-width: 0; }
.stats-totals span, .stats-totals strong { display: block; }
.stats-totals span { font-size: 11px; font-weight: 700; margin-bottom: 3px; }
.stats-totals strong { font-size: clamp(16px,1.32vw,22px); overflow-wrap: anywhere; }
.home-blog { margin-top: 16px; }
.home-blog h2 { font-size: clamp(17px,1.35vw,23px); }
.home-blog .section-head { align-items: center; }
.home-blog .section-head .button { flex-shrink: 0; font-size: 11px; padding-inline: 8px; }
.posts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.post { background: white; border: 1px solid #e9ecef; border-radius: 7px; box-shadow: 0 3px 10px #0c254510; padding: 5px; }
.post-photo { position: relative; }
.post-photo img { width: 100%; height: auto; aspect-ratio: 1.35; border-radius: 5px; background: #142b47; }
.post-photo span { position: absolute; top: 4px; left: 4px; max-width: calc(100% - 8px); background: #a64310; color: white; text-transform: uppercase; font-size: 9px; font-weight: 700; padding: 3px 5px; border-radius: 3px; }
.post-copy { padding: 5px 1px 2px; }
.post h3 { font-size: 12px; line-height: 1.17; }
.post time { color: var(--muted); font-size: 10px; display: block; margin: 5px 0 3px; }
.post-copy p { font-size: 11px; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post a:hover h3 { color: var(--rust); }
.footer { background: var(--navy); color: #eff5fd; text-align: center; padding: 13px var(--padding) 16px; }
.footer p { display: flex; justify-content: center; align-items: center; gap: 9px; font-size: 14px; }
.footer .brand-icon { width: 28px; height: 28px; border-width: 1px; border-radius: 6px; font-size: 19px; }
.footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 0; margin-top: 7px; }
.footer nav a { padding: 0 11px; font-size: 13px; border-right: 1px solid #b0bdd0; }
.footer nav a:last-child { border: 0; }
.footer nav a:hover { color: #ffba79; }
.page-head { padding: 29px var(--padding) 32px; color: white; background: linear-gradient(90deg,#09294ef2,#102f508c), url('estudio.webp') center / cover; font-size: 14px; }
.page-head a { text-decoration: underline; }
.page-head h1, .admin-main h1 { font-size: clamp(28px,4vw,45px); letter-spacing: -.035em; margin: 10px 0; overflow-wrap: anywhere; }
.page-head p { font-size: 16px; }
.content { padding: 25px var(--padding) 42px; min-height: 410px; }
.notice, .empty { padding: 13px 15px; background: #e8f0fb; border: 1px solid #cfddf0; border-radius: 8px; margin-bottom: 13px; }
.notice.success { background: #e4f5eb; border-color: #a4d7b9; color: #18482c; }
.notice.error { background: #fff0e9; border-color: #ebc0ac; color: #792e18; }
.empty { color: var(--muted); background: #fff; border-color: var(--border); }
.muted { color: var(--muted); }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 13px; margin-bottom: 18px; }
.filters label:first-of-type { flex: 1 1 240px; }
.filters label:nth-of-type(2) { flex: 0 1 220px; }
.filters > a { padding: 12px 0; text-decoration: underline; }
label { display: grid; gap: 6px; font-weight: 700; min-width: 0; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; min-width: 0; background: white; border: 1px solid #bac7d5; border-radius: 7px; padding: 10px; min-height: 43px; }
textarea { resize: vertical; }
.candidate-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,230px),1fr)); gap: 16px; }
.candidate-card { overflow: hidden; background: white; border: 1px solid var(--border); border-radius: 11px; }
.candidate-card img { width: 100%; height: 170px; }
.candidate-position { display: block; color: var(--rust); font-size: 13px; font-weight: 700; margin: 12px 13px 6px; }
.candidate-card h2 { font-size: 20px; margin: 0 13px 5px; overflow-wrap: anywhere; }
.candidate-card > p { margin: 0 13px 12px; color: var(--muted); overflow-wrap: anywhere; }
.candidate-actions { padding: 9px 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--border); min-height: 53px; }
.pagination, .tag-nav, .quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.pagination a, .pill { display: inline-block; padding: 8px 12px; border-radius: 6px; background: #e5ecf6; color: #183f69; font-weight: 700; }
.pagination a[aria-current='page'], .tag-nav a[aria-current='page'] { background: var(--navy); color: white; }
.profile { display: grid; grid-template-columns: minmax(0,340px) minmax(0,1fr); gap: 24px; }
.profile-photo { border-radius: 10px; width: 100%; height: auto; aspect-ratio: 1; }
.prose { max-width: 820px; line-height: 1.6; overflow-wrap: anywhere; }
.prose p { margin-bottom: 12px; }
.prose a { color: #164c83; text-decoration: underline; }
.article img { width: 100%; height: auto; max-height: 410px; margin: 8px 0 18px; border-radius: 9px; }
.article .lead { font-size: 20px; font-weight: 700; }
.blog-page .posts { gap: 15px; }
.blog-page .post { padding: 9px; }
.blog-page .post h3 { font-size: 18px; }
.blog-page .post time, .blog-page .post p { font-size: 14px; }
.stats-page { max-width: 790px; }
.stats-page .stats-breakdown { padding: 15px; background: white; border-radius: 9px; }
.stats-page .chart-row, .stats-page .legend div, .stats-page .stats-breakdown h3 { font-size: 14px; margin-bottom: 8px; }
.stats-page .chart-row { grid-template-columns: minmax(75px,auto) minmax(0,1fr) 38px; }
.admin-site { max-width: 1260px; }
.admin-main { min-height: 510px; }
.auth-wrap { max-width: 480px; padding: 25px 20px 45px; margin: auto; }
.editor { display: grid; gap: 13px; max-width: 760px; background: white; border: 1px solid var(--border); border-radius: 10px; padding: clamp(14px,2vw,24px); }
.editor .button { justify-self: start; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor-preview { width: 122px; height: 100px; border-radius: 8px; }
.check { display: flex; align-items: center; min-height: 30px; gap: 9px; }
.check input { width: 20px; min-height: 20px; accent-color: #1a4f82; }
.admin-nav { display: flex; gap: 7px; flex-wrap: wrap; padding: 14px var(--padding); background: #e7eef7; }
.admin-nav a { padding: 8px 10px; border-radius: 6px; font-weight: 700; }
.admin-nav a[aria-current='page'] { background: var(--navy); color: #fff; }
.admin-nav form { margin-left: auto; }
.admin-content { padding: 17px var(--padding) 35px; }
.admin-content > a { color: #184e81; }
.admin-content > .section-head { align-items: center; }
.admin-list { display: grid; gap: 7px; }
.admin-list article { display: flex; align-items: center; gap: 12px; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.admin-list img { border-radius: 5px; flex-shrink: 0; }
.admin-list small { display: block; color: var(--muted); margin-top: 4px; }
.admin-list strong { overflow-wrap: anywhere; }
.item-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-left: auto; }
.message { background: white; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; padding: 14px; overflow-wrap: anywhere; }
.message p { margin-top: 6px; }
.message a { text-decoration: underline; color: #174f85; }
@media (max-width: 1180px) {
    .home-grid { grid-template-columns: minmax(0, 1.9fr) minmax(0,1fr); }
    .showcase { grid-template-columns: minmax(0,.92fr) minmax(0,1fr); }
    .live-row { grid-template-columns: 42px minmax(0,1fr) auto; gap: 3px 6px; }
    .mini-photo img { min-height: 48px; }
    .live-row .button { padding-inline: 6px; }
    .live-data > a { font-size: 13px; }
    .home-blog .section-head { display: block; }
    .home-blog .section-head .button { margin-top: 5px; }
}
@media (max-width: 1020px) {
    .home-grid { grid-template-columns: 1fr; row-gap: 18px; }
    .showcase { grid-template-columns: minmax(0,.72fr) minmax(0,1fr); }
    .right-home { display: grid; gap: 19px; grid-template-columns: 1fr 1.2fr; }
    .home-blog { margin-top: 0; }
    .podium-card img { height: 133px; }
    .place-1 img { height: 149px; }
    .live { padding-top: 29px; }
    .brand-icon { width: 42px; height: 42px; font-size: 26px; }
    .header { gap: 12px; }
    .search-icon { padding: 8px; }
    .header-actions { gap: 7px; }
    .header .button.orange { padding-inline: 10px; }
}
@media (max-width: 760px) {
    .site { width: 100%; margin: 0; border-radius: 0; }
    .header { flex-wrap: wrap; justify-content: start; min-height: 70px; padding-block: 10px; }
    .header .brand { margin-right: auto; }
    .header-actions { order: 1; }
    .header-actions .search-icon { display: none; }
    .header .button.orange { min-height: 42px; }
    .nav { order: 2; width: 100%; justify-content: start; gap: 4px 19px; }
    .nav a { padding: 10px 0; }
    .has-js .nav { display: none; }
    .has-js .nav.is-open { display: flex; }
    .has-js .mobile-toggle { display: inline-flex; order: 1; gap: 4px; align-items: center; justify-content: center; background: none; border: 1px solid #5b7592; border-radius: 7px; color: white; min-height: 42px; padding: 7px; font-size: 13px; }
    .hero { min-height: 337px; background-position: center, 59% center; background-image: linear-gradient(90deg,#071e3de6,#0b294f85),url('estudio.webp'); }
    .hero-inner { padding-block: 30px; }
    .hero h1 { font-size: clamp(37px,7.7vw,52px); }
    .right-home { grid-template-columns: 1fr; }
    .home-blog .section-head { display: flex; }
    .rank-home > .section-head { align-items: start; }
    .rank-home > .section-head span { max-width: 32%; }
    .post h3 { font-size: 13px; }
    .button.small { min-height: 42px; }
}
@media (max-width: 550px) {
    .showcase { display: flex; flex-direction: column-reverse; gap: 20px; }
    .showcase > * { width: 100%; }
    .podium { min-height: 0; padding-top: 25px; align-items: stretch; }
    .podium-card { min-height: 210px; padding: 25px 5px 10px; }
    .podium-card.place-1 { min-height: 222px; }
    .podium-card:not(.place-1) { margin-top: 12px; }
    .podium-card img, .place-1 img { height: auto; aspect-ratio: .98; }
    .medal { font-size: 21px; top: -17px; border-radius: 7px; padding: 4px 8px; }
    .live { padding-top: 0; }
    .live-row { grid-template-columns: 52px minmax(0,1fr) auto; min-height: 74px; }
    .live-data > a { font-size: 15px; }
    .live-data small { padding-top: 20px; }
    .live-row .button { padding-inline: 10px; }
    .profile { grid-template-columns: 1fr; }
    .profile-photo { max-width: 330px; }
    .blog-page .posts { grid-template-columns: 1fr; }
    .editor-grid { grid-template-columns: 1fr; }
    .home-grid > .notice { margin-bottom: 0; }
    .footer nav a { padding-inline: 8px; }
    .item-actions { align-self: start; }
    .admin-list article { gap: 8px; }
    .admin-list img { width: 43px; height: 43px; }
}
@media (max-width: 430px) {
    .has-js .mobile-toggle span { display: none; }
    .search-field input { padding-inline: 2px; font-size: 14px; }
}
@media (max-width: 370px) {
    .header { gap: 7px; }
    .brand { gap: 5px; }
    .brand strong { font-size: 21px; }
    .brand small { font-size: 9px; }
    .brand-icon { width: 33px; height: 33px; font-size: 21px; border-width: 2px; }
    .header .button.orange { padding-inline: 6px; font-size: 12px; }
    .home-blog .section-head { display: block; }
    .podium { gap: 5px; }
    .vote-count { padding-inline: 3px; font-size: 10px; }
    .post-photo span { font-size: 8px; padding-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
/* Keep names and station names in distinct rows when they wrap. */
.mini-photo { grid-row: 1/4; }
.live-data > a { grid-row: 1; align-self: end; overflow-wrap: anywhere; }
.live-data small { grid-row: 2; align-self: start; padding-top: 0; }
.live-row form, .live-row .voted { grid-column: 3; grid-row: 1/3; align-self: center; }
.progress-line { grid-row: 3; }
