/* zddgame homepage redesign — scoped under .zhome */
.zhome {
    --ink: #101322;
    --muted: #5f6a82;
    --line: #e7eaf2;
    --red: #d43030;
    --red-dark: #a51f1f;
    --bg: #f5f6fa;
    --card: #ffffff;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 64px;
}
.zhome *,
.zhome *::before,
.zhome *::after { box-sizing: border-box; }
.zhome img { display: block; max-width: 100%; }
.zhome h2, .zhome h3, .zhome h4, .zhome p, .zhome ol, .zhome ul { margin: 0; padding: 0; }
.zhome ol, .zhome ul { list-style: none; }
.zhome a { color: inherit; text-decoration: none; }
.zhome a:hover { color: inherit; text-decoration: none; }

.zh-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hero ---------- */
.zh-hero {
    background: radial-gradient(1200px 460px at 12% -10%, #2b3140 0, #141922 52%, #0b0e13 100%);
    padding: 34px 0 0;
}
.zh-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}
.zh-hero-main {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 430px;
    border-radius: 20px;
    overflow: hidden;
    background: #1a1f2a;
    isolation: isolate;
}
.zh-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
    z-index: -2;
}
.zh-hero-main:hover .zh-hero-img { transform: scale(1.04); }
.zh-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 10, 15, .05) 0%, rgba(8, 10, 15, .58) 52%, rgba(8, 10, 15, .94) 100%);
}
.zh-flag {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 6px 11px;
    border-radius: 999px;
}
.zh-hero-copy { position: relative; padding: 30px; color: #fff; max-width: 92%; }
.zh-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.zh-hero-copy h2 {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -.5px;
    margin-bottom: 10px;
}
.zh-hero-copy p {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
}
.zh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 999px;
    transition: background .25s ease, transform .25s ease;
}
.zh-btn:hover { background: var(--red-dark); transform: translateY(-1px); }

.zh-hero-side { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)) auto; gap: 12px; }
.zh-hero-mini {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    transition: background .25s ease, border-color .25s ease;
}
.zh-hero-mini:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
.zh-hero-mini-img { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #222836; }
.zh-hero-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.zh-hero-mini-img span {
    position: absolute;
    left: 6px;
    bottom: 6px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(10, 12, 18, .72);
    padding: 3px 7px;
    border-radius: 999px;
}
.zh-hero-mini h3 {
    font-size: 14.5px;
    line-height: 1.35;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zh-hero-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #ffd9d9 !important;
}
.zh-hero-all span { transition: transform .25s ease; }
.zh-hero-all:hover span { transform: translateX(4px); }

/* ---------- Stats ---------- */
.zh-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 22px 45px rgba(8, 12, 24, .16);
    margin-top: 30px;
    margin-bottom: -36px;
    padding: 22px 8px;
}
.zh-stat { text-align: center; padding: 2px 8px; border-left: 1px solid var(--line); }
.zh-stat:first-child { border-left: 0; }
.zh-stat strong { display: block; font-size: 25px; line-height: 1.1; font-weight: 800; color: var(--red); letter-spacing: -.5px; }
.zh-stat span { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 600; letter-spacing: .3px; color: var(--muted); text-transform: uppercase; }

/* ---------- Shared section bits ---------- */
.zh-section { padding: 78px 0 0; }
.zh-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}
.zh-kicker {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 6px;
}
.zh-title { font-size: 29px; line-height: 1.15; font-weight: 800; letter-spacing: -.6px; }
.zh-more { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--red) !important; }
.zh-more span { display: inline-block; transition: transform .25s ease; }
.zh-more:hover span { transform: translateX(4px); }

/* ---------- Genres ---------- */
.zh-genres { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.zh-genres a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12.5px;
    font-weight: 600;
    color: #29304a;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.zh-genres a:hover { border-color: #f2bcbc; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16, 19, 34, .07); }
.zh-genres em {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--red);
    background: #fdecec;
    border-radius: 999px;
    padding: 2px 7px;
}

/* ---------- Game grid ---------- */
.zh-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.zh-game {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px 10px 14px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.zh-game:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(16, 19, 34, .12); border-color: #e2e6f0; }
.zh-game-cover { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 5 / 4; background: #eceff6; }
.zh-game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.zh-game:hover .zh-game-cover img { transform: scale(1.05); }
.zh-game-tag {
    position: absolute;
    top: 9px;
    left: 9px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(10, 12, 18, .72);
    padding: 4px 8px;
    border-radius: 999px;
}
.zh-game h3 {
    margin: 11px 4px 0;
    font-size: 14.5px;
    line-height: 1.35;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zh-game p {
    margin: 6px 4px 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Codes + quizzes ---------- */
.zh-section-alt { padding-top: 82px; }
.zh-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 22px; align-items: start; }
.zh-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(16, 19, 34, .05);
}
.zh-panel .zh-title { font-size: 23px; }
.zh-codes { display: flex; flex-direction: column; }
.zh-code {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px;
    border-radius: 13px;
    transition: background .2s ease;
}
.zh-code:hover { background: #f7f8fc; }
.zh-code-img { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 11px; overflow: hidden; background: #eef1f7; }
.zh-code-img img { width: 100%; height: 100%; object-fit: cover; }
.zh-code-copy { flex: 1; min-width: 0; }
.zh-code-copy h3 {
    font-size: 13.5px;
    line-height: 1.35;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zh-code-copy span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.zh-code-arrow { flex: 0 0 auto; font-size: 15px; font-weight: 700; color: #d9dce7; transition: color .2s ease, transform .2s ease; }
.zh-code:hover .zh-code-arrow { color: var(--red); transform: translateX(3px); }

.zh-quizzes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.zh-quiz { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 11; background: #1b2030; }
.zh-quiz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.zh-quiz::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 15, 0) 32%, rgba(8, 10, 15, .88) 100%);
}
.zh-quiz:hover img { transform: scale(1.06); }
.zh-quiz-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 13px; color: #fff; }
.zh-quiz-copy span {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #ffd0d0;
    margin-bottom: 4px;
}
.zh-quiz-copy h3 {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- News ---------- */
.zh-news-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 28px; align-items: start; }
.zh-lead {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: 16px;
    padding: 24px 26px;
    transition: box-shadow .25s ease, transform .25s ease;
}
.zh-lead:hover { box-shadow: 0 16px 32px rgba(16, 19, 34, .09); transform: translateY(-2px); }
.zh-news-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--red);
    background: #fdecec;
    padding: 4px 9px;
    border-radius: 999px;
    margin-bottom: 11px;
}
.zh-lead h3 {
    font-size: 24px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -.4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zh-lead p {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zh-date { display: inline-block; margin-top: 12px; font-size: 11.5px; font-weight: 600; color: var(--red); }

.zh-news-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-top: 15px; padding: 4px 20px; }
.zh-news-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.zh-news-row:last-child { border-bottom: 0; }
.zh-news-row .zh-date { margin: 0; flex: 0 0 88px; color: #9aa2b6; }
.zh-news-row h4 {
    flex: 1;
    font-size: 13.5px;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zh-news-row:hover h4 { color: var(--red); }
.zh-row-arrow { color: #d9dce7; font-weight: 700; transition: color .2s ease, transform .2s ease; }
.zh-news-row:hover .zh-row-arrow { color: var(--red); transform: translateX(3px); }

.zh-news-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.zh-news-col { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.zh-subtitle { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.zh-subtitle a:hover { color: var(--red); }
.zh-mini-row { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.zh-mini-row:last-child { border-bottom: 0; padding-bottom: 0; }
.zh-mini-row h4 {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zh-mini-row:hover h4 { color: var(--red); }
.zh-mini-row .zh-date { margin-top: 5px; font-size: 10.5px; color: #9aa2b6; font-weight: 500; }

/* ---------- Aside ---------- */
.zh-panel-flat { padding: 22px; }
.zh-ranks li { border-bottom: 1px solid var(--line); }
.zh-ranks li:last-child { border-bottom: 0; }
.zh-ranks a { display: flex; align-items: center; gap: 11px; padding: 11px 0; }
.zh-rank {
    flex: 0 0 24px;
    font-size: 15px;
    font-weight: 800;
    color: #c7ccda;
    letter-spacing: -.5px;
}
.zh-ranks li:nth-child(-n+3) .zh-rank { color: var(--red); }
.zh-ranks h4 {
    flex: 1;
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zh-ranks a:hover h4 { color: var(--red); }
.zh-ranks em { font-style: normal; flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: #8a93a8; }
.zh-ranks em::before { content: "\2605"; color: #ffb400; margin-right: 3px; }

/* ---------- CTA ---------- */
.zh-cta-band {
    margin-top: 78px;
    padding: 52px 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(120deg, #d43030 0%, #b32424 55%, #821414 100%);
}
.zh-cta-band .zh-kicker { color: rgba(255, 255, 255, .72); }
.zh-cta-band h2 { font-size: 31px; font-weight: 800; letter-spacing: -.5px; }
.zh-cta-band p { margin: 10px auto 22px; max-width: 520px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.zh-btn-light { background: #fff; color: var(--red) !important; }
.zh-btn-light:hover { background: #ffecec; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
    .zh-hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
    .zh-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .zh-news-grid { grid-template-columns: minmax(0, 1fr) 330px; }
    .zh-hero-copy h2 { font-size: 30px; }
}
@media (max-width: 960px) {
    .zh-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .zh-hero-main { min-height: 390px; }
    .zh-hero-side { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; }
    .zh-hero-mini { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .zh-hero-mini-img { aspect-ratio: 16 / 10; }
    .zh-hero-all { grid-column: 1 / -1; }
    .zh-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
    .zh-stat:nth-child(4) { border-left: 0; }
    .zh-split { grid-template-columns: minmax(0, 1fr); }
    .zh-news-grid { grid-template-columns: minmax(0, 1fr); }
    .zh-aside .zh-ranks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 720px) {
    .zh-hero { padding-top: 22px; }
    .zh-hero-shade { background: linear-gradient(180deg, rgba(8, 10, 15, .18) 0%, rgba(8, 10, 15, .72) 46%, rgba(8, 10, 15, .96) 100%); }
    .zh-hero-main { min-height: 340px; border-radius: 16px; }
    .zh-hero-copy { padding: 22px; }
    .zh-hero-copy h2 { font-size: 25px; }
    .zh-hero-copy p { font-size: 13px; -webkit-line-clamp: 3; }
    .zh-hero-side { grid-template-columns: minmax(0, 1fr); }
    .zh-hero-mini { grid-template-columns: 96px minmax(0, 1fr); }
    .zh-hero-all { display: none; }
    .zh-flag { top: 12px; left: 12px; }
    .zh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; margin-bottom: -30px; padding: 18px 6px; }
    .zh-stat:nth-child(3), .zh-stat:nth-child(5) { border-left: 0; }
    .zh-stat strong { font-size: 21px; }
    .zh-section { padding-top: 58px; }
    .zh-title { font-size: 23px; }
    .zh-sec-head { align-items: center; }
    .zh-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
    .zh-game h3 { font-size: 13px; }
    .zh-panel { padding: 18px; border-radius: 16px; }
    .zh-panel .zh-title { font-size: 20px; }
    .zh-news-cols { grid-template-columns: minmax(0, 1fr); }
    .zh-news-row .zh-date { flex-basis: 76px; }
    .zh-aside .zh-ranks { grid-template-columns: minmax(0, 1fr); }
    .zh-lead { padding: 20px; }
    .zh-lead h3 { font-size: 20px; }
    .zh-cta-band { margin-top: 58px; padding: 40px 0; }
    .zh-cta-band h2 { font-size: 24px; }
}
@media (max-width: 480px) {
    .zh-wrap { padding: 0 14px; }
    .zh-quizzes { grid-template-columns: minmax(0, 1fr); }
    .zh-game p { display: none; }
    .zh-news-row { gap: 10px; }
    .zh-news-row .zh-date { flex-basis: 64px; font-size: 10px; }
    .zh-news-row h4 { font-size: 12.5px; }
}
