/* ============================================================================
   Home hub: news feed + ranked top-5, plus the full news-article page.
   Same RPG-dossier language as profile.css (engraved titles, gold accents).
   ========================================================================== */

/* ---------------------------------------------------------------- layout --- */
body.home .main { max-width: 1280px; }

.home-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr);
    gap: var(--space-6);
    align-items: start;
}

/* ---------------------------------------------------------- status strip --- */
.status-strip {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-6); flex-wrap: wrap;
    margin-bottom: var(--space-6);
    padding: var(--space-4) var(--space-6);
    border: 1px solid rgba(242, 169, 59, 0.28);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(20, 21, 29, 0.92), rgba(14, 14, 18, 0.96)),
        radial-gradient(120% 160% at 50% 0%, rgba(74, 144, 217, 0.14), transparent 60%);
    box-shadow: var(--shadow-2), inset 0 1px 0 rgba(236, 231, 221, 0.05);
}
.status-strip .corner {
    position: absolute; width: 18px; height: 18px; pointer-events: none;
    border-color: rgba(242, 169, 59, 0.7); border-style: solid; border-width: 0;
}
.status-strip .corner.tl { top: 5px; left: 5px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.status-strip .corner.tr { top: 5px; right: 5px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 6px; }
.status-strip .corner.bl { bottom: 5px; left: 5px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 6px; }
.status-strip .corner.br { bottom: 5px; right: 5px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }

.ss-item {
    display: inline-flex; align-items: baseline; gap: 10px;
    font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--text-muted);
}
.ss-item b { font-size: 1.05rem; letter-spacing: 0.08em; }
.ss-sep { color: rgba(242, 169, 59, 0.45); font-size: 0.6rem; }

.status-strip.is-on  .ss-state { color: var(--ok); text-shadow: 0 0 14px rgba(87, 194, 138, 0.45); }
.status-strip.is-off .ss-state { color: var(--ember); text-shadow: 0 0 14px rgba(255, 92, 122, 0.4); }
.ss-players { color: var(--ok); }
.status-strip.is-off .ss-players { color: var(--text-muted); }
.ss-clock { color: var(--bone); }
.ss-msk { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.12em; }

/* ---------------------------------------------------------- season strip --- */
/* Same dossier plate as .status-strip, but clickable — leads to season.php. */
.season-strip {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-6); flex-wrap: wrap;
    margin-bottom: var(--space-6);
    padding: var(--space-4) var(--space-6);
    text-decoration: none;
    border: 1px solid rgba(242, 169, 59, 0.28);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(24, 20, 14, 0.92), rgba(14, 14, 18, 0.96)),
        radial-gradient(120% 160% at 50% 0%, rgba(242, 169, 59, 0.16), transparent 60%);
    box-shadow: var(--shadow-2), inset 0 1px 0 rgba(236, 231, 221, 0.05);
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.season-strip:hover {
    border-color: rgba(242, 169, 59, 0.55);
    box-shadow: var(--shadow-2), 0 0 24px rgba(242, 169, 59, 0.12), inset 0 1px 0 rgba(236, 231, 221, 0.05);
}
.season-strip .corner {
    position: absolute; width: 18px; height: 18px; pointer-events: none;
    border-color: rgba(242, 169, 59, 0.7); border-style: solid; border-width: 0;
}
.season-strip .corner.tl { top: 5px; left: 5px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.season-strip .corner.tr { top: 5px; right: 5px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 6px; }
.season-strip .corner.bl { bottom: 5px; left: 5px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 6px; }
.season-strip .corner.br { bottom: 5px; right: 5px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }

.sn-item {
    display: inline-flex; align-items: baseline; gap: 10px;
    font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--text-muted);
}
.sn-item b { font-size: 1.05rem; letter-spacing: 0.08em; }
.sn-sep { color: rgba(242, 169, 59, 0.45); font-size: 0.6rem; }
.sn-num { color: var(--sodium); }
.sn-title { color: var(--sodium); text-shadow: 0 0 14px rgba(242, 169, 59, 0.35); }
.sn-date { color: var(--bone); }
.sn-more {
    font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.season-strip:hover .sn-more { color: var(--sodium); transform: translateX(3px); }

/* Off-season: the strip is informational, not a link. */
.season-strip.closed {
    cursor: default;
    border-color: rgba(255, 92, 122, 0.3);
    background:
        linear-gradient(180deg, rgba(26, 16, 18, 0.92), rgba(14, 14, 18, 0.96)),
        radial-gradient(120% 160% at 50% 0%, rgba(255, 92, 122, 0.1), transparent 60%);
}
.season-strip.closed:hover { border-color: rgba(255, 92, 122, 0.3); box-shadow: var(--shadow-2), inset 0 1px 0 rgba(236, 231, 221, 0.05); }
.season-strip.closed .corner { border-color: rgba(255, 92, 122, 0.55); }
.season-strip.closed .sn-title { color: var(--ember); text-shadow: 0 0 14px rgba(255, 92, 122, 0.3); }
.season-strip.closed .sn-sep { color: rgba(255, 92, 122, 0.4); }
.season-strip.closed .sn-wait { color: var(--bone); }

/* --------------------------------------------------------------- panels --- */
.home-panel {
    position: relative;
    padding: var(--space-6);
    background: linear-gradient(180deg, var(--surface) 0%, #15161d 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}
/* Gold hairline across the top, как у карточек профиля. */
.home-panel::before {
    content: ''; position: absolute; top: 0; left: var(--space-6); right: var(--space-6);
    height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 169, 59, 0.45), transparent);
}

.home-panel .scroll-title {
    display: flex; align-items: center; gap: var(--space-3);
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
    margin: 0 0 var(--space-5); color: var(--bone);
}
.home-panel .scroll-title::before, .home-panel .scroll-title::after {
    content: ''; height: 1px; flex: 1; display: block;
    background: linear-gradient(90deg, transparent, rgba(242, 169, 59, 0.35), transparent);
}
.home-panel .scroll-title::before { max-width: 24px; flex: 0 0 24px; }
.home-panel .scroll-title span { flex-shrink: 0; }

/* ------------------------------------------------------------- feed tabs --- */
.feed-tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); flex-wrap: wrap; }
.ftab {
    padding: 8px 20px; font: inherit; font-size: 0.9rem; cursor: pointer;
    color: var(--text-muted); background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.ftab:hover { color: var(--text); border-color: rgba(242, 169, 59, 0.4); }
.ftab.active {
    color: var(--sodium); border-color: rgba(242, 169, 59, 0.55);
    background: rgba(242, 169, 59, 0.08);
}

/* ------------------------------------------------------------- feed rows --- */
.feed { display: flex; flex-direction: column; gap: var(--space-3); }
.feed-row {
    display: flex; align-items: center; gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    text-decoration: none; color: var(--text);
    transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.feed-row:hover { transform: translateX(2px); border-color: rgba(242, 169, 59, 0.4); }

.feed-badge {
    flex-shrink: 0; min-width: 110px; text-align: center;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 6px 12px; border-radius: var(--radius-sm);
}
.feed-badge.news   { color: var(--azure);  border: 1px solid rgba(74, 144, 217, 0.5);  background: rgba(74, 144, 217, 0.1); }
.feed-badge.event  { color: var(--sodium); border: 1px solid rgba(242, 169, 59, 0.5);  background: rgba(242, 169, 59, 0.1); }
.feed-badge.update { color: var(--ok);     border: 1px solid rgba(87, 194, 138, 0.5);  background: rgba(87, 194, 138, 0.1); }

.feed-title {
    flex: 1; min-width: 0;
    font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feed-date { flex-shrink: 0; font-size: 0.82rem; color: var(--text-muted); }

.feed-empty { color: var(--text-muted); font-size: 0.9rem; margin: var(--space-2) 0 0; }

/* -------------------------------------------------------------- ranking --- */
.rank-champion { text-align: center; margin-bottom: var(--space-4); }
.champ-name {
    font-family: var(--font-display); font-size: 1.25rem; color: var(--sodium);
    margin-bottom: var(--space-3);
}
.champ-name b { color: var(--bone); }
.champ-avatar {
    width: 104px; height: 104px; margin: 0 auto; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(242, 169, 59, 0.55);
    outline: 1px solid rgba(242, 169, 59, 0.18); outline-offset: 4px;
    background: radial-gradient(circle at 50% 35%, rgba(242, 169, 59, 0.12), rgba(14, 14, 18, 0.6) 70%);
    box-shadow: 0 0 22px rgba(242, 169, 59, 0.18);
}
.champ-avatar img { width: 100%; height: 100%; object-fit: cover; }
.champ-avatar span {
    font-family: var(--font-display); font-size: 2.4rem; color: var(--sodium);
}

.rank-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rank-table thead th {
    text-align: left; padding: 10px 12px;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(242, 169, 59, 0.07);
    border-bottom: 1px solid rgba(242, 169, 59, 0.3);
}
.rank-table th.num, .rank-table td.num { text-align: right; }
.rank-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.rank-table tbody tr:last-child td { border-bottom: none; }
.rank-table tbody tr:hover td { background: rgba(242, 169, 59, 0.04); }
.rank-table tr.first .rt-name { color: var(--sodium); font-weight: 600; }
.rank-table .up   { color: var(--ok); }
.rank-table .down { color: var(--ember); }
.rt-badge {
    height: 22px; width: auto; vertical-align: -6px; margin-right: 6px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}
.rank-table .calib {
    font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); margin-left: 6px;
}

/* --------------------------------------------------------- news article --- */
.news-article { max-width: 860px; margin: 0 auto; }
.news-back {
    display: inline-block; margin-bottom: var(--space-4);
    color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
}
.news-back:hover { color: var(--sodium); }

.news-head { margin-bottom: var(--space-5); }
.news-head .feed-badge { display: inline-block; min-width: 0; margin-bottom: var(--space-3); }
.news-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1;
    margin: 0 0 var(--space-2); color: var(--bone);
}
.news-byline { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.news-byline b { color: var(--text); }

.news-cover {
    width: 100%; max-height: 380px; object-fit: cover;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    margin-bottom: var(--space-5); box-shadow: var(--shadow-2);
}

.news-body {
    padding: var(--space-6);
    background: linear-gradient(180deg, var(--surface) 0%, #15161d 100%);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    line-height: 1.65; font-size: 0.95rem;
}
.news-body h2, .news-body h3 {
    font-family: var(--font-display); color: var(--bone);
    margin: var(--space-5) 0 var(--space-3);
}
.news-body h2:first-child, .news-body h3:first-child, .news-body p:first-child { margin-top: 0; }
.news-body p { margin: 0 0 var(--space-3); }
.news-body ul, .news-body ol { margin: 0 0 var(--space-3); padding-left: var(--space-5); }
.news-body li { margin-bottom: var(--space-2); }
.news-body img {
    max-width: 100%; border-radius: var(--radius);
    border: 1px solid var(--border); margin: var(--space-3) 0;
}
.news-body a { color: var(--azure); }
.news-body b, .news-body strong { color: var(--bone); }
.news-body .patch-block {
    padding: var(--space-4) var(--space-5); margin: 0 0 var(--space-4);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.news-body .patch-block > h3:first-child { margin-top: 0; color: var(--ok); font-size: 0.95rem; }

/* --------------------------------------------------------- responsive --- */
@media (max-width: 900px) {
    .home-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .feed-row { flex-wrap: wrap; gap: var(--space-2); }
    .feed-title { white-space: normal; flex-basis: 100%; order: 3; }
}
