/* =====================================================================
   Remix contests: the list (/contests/) and one contest (/contests/<name>).
   Sits on landing.css (shader background, glass modules) and adds only the
   contest pieces. Scoped to body.contests-page.
   ===================================================================== */

body.contests-page .landing-wrap { padding: 0 40px 60px; }

.contests-page .contest-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
}
.contests-page .contest-top img { width: 170px; height: auto; display: block; }
.contests-page .contest-top a.top-link { color: #cbd5f5; font-size: 13px; font-weight: 600; text-decoration: none; }
.contests-page .contest-top a.top-link:hover { color: #fff; }

.contests-page h1 {
    margin: 0;
    font-family: 'Outfit', -apple-system, 'Segoe UI', sans-serif;
    font-size: clamp(28px, 4.4vw, 46px);
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    text-wrap: balance;
}

.stage-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(2, 6, 23, 0.55);
    color: #cbd5f5;
    border: 1px solid rgba(203, 213, 245, 0.35);
}
.stage-chip.open, .stage-chip.voting { color: #6ee7a8; border-color: rgba(110, 231, 168, 0.55); }
.stage-chip.announced, .stage-chip.judging { color: #fcd34d; border-color: rgba(252, 211, 77, 0.5); }
.stage-chip.results { color: #93c5fd; border-color: rgba(147, 197, 253, 0.55); }

/* ----- list ----- */
.contest-group + .contest-group { margin-top: 22px; }
.contest-group h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #cbd5f5; }
.contest-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.contest-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #1b2233 center / cover no-repeat;
    transition: transform 0.2s, filter 0.2s;
}
.contest-card:hover { transform: translateY(-1px); filter: brightness(1.06); }
.contest-card:focus-visible { outline: 2px solid rgba(243, 138, 184, 0.85); outline-offset: 2px; }
.contest-card-body {
    margin-top: auto;
    padding: 14px;
    display: grid;
    gap: 6px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.9) 45%);
}
.contest-card h3 { margin: 0; font-size: 18px; font-weight: 800; color: #fff; }
.contest-card p { margin: 0; font-size: 13px; color: #cbd5f5; }
.contest-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.contest-card .stage-chip { position: absolute; top: 12px; left: 12px; }
.contests-empty { color: #cbd5f5; font-size: 14px; }

/* ----- one contest ----- */
.contest-hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #1b2233 center / cover no-repeat;
    min-height: 300px;
    display: flex;
}
.contest-hero-body {
    margin-top: auto;
    width: 100%;
    padding: 26px;
    display: grid;
    gap: 10px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.92) 55%);
}
.contest-hero .artist-line { color: #cbd5f5; font-size: 15px; font-weight: 600; }
.contest-hero .tagline { margin: 0; max-width: 62ch; color: #e5e7eb; font-size: 15px; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; font-size: 15px; }
.countdown span { color: #94a3b8; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.contest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 999px;
    font: 700 14px 'Outfit', -apple-system, 'Segoe UI', sans-serif;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(203, 213, 245, 0.45);
    background: rgba(2, 6, 23, 0.4);
    color: #fff;
}
.contest-btn:hover { background: rgba(2, 6, 23, 0.7); }
.contest-btn.primary { background: #35d07f; border-color: #35d07f; color: #04140b; }
.contest-btn.primary:hover { background: #4fe093; }
.contest-btn:disabled { opacity: 0.5; cursor: default; }
.contest-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.contest-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.contest-columns > * { min-width: 0; }
.contest-section + .contest-section { margin-top: 18px; }
.contest-section h2 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #cbd5f5; }
.contest-section p, .contest-section li { color: #e5e7eb; font-size: 14px; line-height: 1.55; max-width: 68ch; }
.contest-section ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.contest-section details summary { cursor: pointer; color: #cbd5f5; font-size: 13px; margin-top: 8px; }
.contest-section details pre { white-space: pre-wrap; font: 13px/1.5 inherit; color: #cbd5f5; }
.artist-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.artist-links a { color: #f38ab8; font-size: 13px; }

.dates { display: grid; gap: 6px; margin: 0; }
.dates div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px solid rgba(203, 213, 245, 0.12); padding-bottom: 6px; }
.dates dt { color: #94a3b8; }
.dates dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; text-align: right; }

.prizes { display: grid; gap: 8px; }
.prize { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start; }
.prize .place { font: 800 13px 'Outfit', sans-serif; color: #fcd34d; text-transform: uppercase; padding-top: 2px; }
.prize .what { color: #fff; font-size: 14px; }
.prize .by { color: #94a3b8; font-size: 12px; }

.my-entry { border-left: 3px solid #35d07f; padding: 10px 14px; background: rgba(2, 6, 23, 0.35); border-radius: 8px; color: #e5e7eb; font-size: 14px; }
.my-entry.removed { border-left-color: #e2564a; }
.phone-note { color: #cbd5f5; font-size: 14px; }

.entries-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.votes-left { color: #cbd5f5; font-size: 13px; font-variant-numeric: tabular-nums; }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.entry-card { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(2, 6, 23, 0.4); min-width: 0; }
.entry-card video, .entry-card audio { width: 100%; border-radius: 8px; display: block; }
.entry-card video { aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.entry-card .title { font-weight: 700; color: #fff; font-size: 15px; overflow-wrap: anywhere; }
.entry-card .by { color: #94a3b8; font-size: 13px; }
.entry-card .by a { color: #f38ab8; text-decoration: none; }
.entry-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.entry-card .place-badge { font: 800 12px 'Outfit', sans-serif; color: #04140b; background: #fcd34d; padding: 2px 9px; border-radius: 999px; }
.entry-card .award { color: #93c5fd; font-size: 12px; font-weight: 700; }
.entry-card .vote-count { color: #cbd5f5; font-size: 13px; font-variant-numeric: tabular-nums; }
.vote-btn { min-height: 34px; padding: 5px 14px; font-size: 13px; }
.vote-btn.voted { background: #35d07f; border-color: #35d07f; color: #04140b; }
.vote-hint { color: #94a3b8; font-size: 12px; }
.contest-msg { color: #fcd34d; font-size: 13px; min-height: 18px; }

/* Featured contest on the landing page */
.featured-contest { padding: 0; overflow: hidden; }
.featured-contest a.contest-card { min-height: 240px; border-radius: 16px; }
.featured-contest .contest-card h3 { font-size: clamp(20px, 3vw, 28px); }
.featured-contest .feature-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.featured-contests { display: grid; gap: 14px; }
.featured-contests.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.featured-contests.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.featured-contests:not(.count-1) .contest-card h3 { font-size: clamp(18px, 2vw, 22px); }

@media (max-width: 860px) {
    .contest-columns { grid-template-columns: 1fr; }
    .featured-contests.count-2, .featured-contests.count-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    body.contests-page .landing-wrap { padding: 0 16px 40px; }
    .contest-hero-body { padding: 18px; }
    .contest-top img { width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
    .contest-card { transition: none; }
}
.featured-contest:has(.count-2), .featured-contest:has(.count-3) { padding: 14px; }

/* The landing page's header on the store and contest pages (media/js/siteHeader.js). */
.site-header .landing-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; margin-right: 6px; }
.site-header .landing-nav a { color: #cbd5f5; font: 600 14px 'Outfit', -apple-system, 'Segoe UI', sans-serif; text-decoration: none; }
.site-header .landing-nav a:hover { color: #fff; }
.site-header .user-popup a { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
