:root {
    --pink: #ff3198;
    --navy: #11224e;
    --sky: #7bd9ff;
    --purple: #8545d9;
    --soft: #f9f6ff;
    --zz-header-h: 90px;
}

* { box-sizing: border-box; }

body.zz-body {
    margin: 0;
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: var(--navy);
    background: linear-gradient(180deg, #dff6ff 0, #fffaff 520px, #faf8ff 100%);
    line-height: 1.5;
    padding-top: var(--zz-header-h);
}

a { text-decoration: none; color: inherit; }
button, input { font: inherit; }

.zz-main { min-height: 60vh; }

/* ---------------- topbar ---------------- */
.zz-header {
    height: var(--zz-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 8px max(24px, 3%);
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}
.zz-header.zz-scrolled {
    height: 64px;
    background: transparent;
    box-shadow: 0 2px 15px rgba(54, 117, 170, 0.16);
}
.zz-header.zz-scrolled::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--zz-sky, linear-gradient(100deg, #6fd0ff, #cdefff 55%, #8fd8ff)) center / cover no-repeat;
    opacity: 0.85;
    z-index: -1;
}
.zz-logo { display: flex; align-items: center; }
.zz-logo img { width: 280px; max-height: 78px; object-fit: contain; transition: width .25s ease, max-height .25s ease; }
.zz-header.zz-scrolled .zz-logo img { width: 200px; max-height: 50px; }

.zz-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 35px;
    white-space: nowrap;
}
.zz-nav a {
    padding: 12px 17px;
    border-radius: 26px;
    font-weight: 800;
    font-size: 14px;
    color: var(--navy);
}
.zz-nav a.zz-nav-active,
.zz-nav a:hover { background: linear-gradient(#ff7bbb, #fa278e); color: #fff; }
.zz-header.zz-scrolled .zz-nav a { padding: 9px 14px; font-size: 13px; }

/* ---------------- search ---------------- */
.zz-search { display: flex; background: #fff; border: 2px solid #f95ca8; border-radius: 35px; overflow: hidden; max-width: 305px; min-width: 180px; }
.zz-search input { border: 0; outline: 0; min-width: 0; width: 100%; padding: 12px 16px; color: var(--navy); }
.zz-search button { border: 0; color: #fff; background: var(--pink); padding: 10px 16px; cursor: pointer; font-weight: 700; }
.zz-search-header { max-width: 250px; min-width: 160px; }
.zz-search-header input { padding: 9px 13px; font-size: 14px; }
.zz-search-header button { padding: 8px 13px; }

/* ---------------- hero ---------------- */
.zz-hero {
    position: relative;
    margin-top: calc(-1 * var(--zz-header-h));
    aspect-ratio: 2172 / 724;
    background: var(--zz-hero, linear-gradient(120deg, #a2e8ff, #e5f9ff)) center / cover no-repeat;
}
.zz-hero-search {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14%;
    width: 40%;
    height: 48px;
    display: flex;
    border-radius: 40px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px #29426940;
}
.zz-hero-search input { width: 100%; border: 0; outline: 0; padding: 0 7%; font-size: clamp(11px, 1vw, 17px); color: var(--navy); }
.zz-hero-search button { width: 15%; border: 0; color: #fff; background: var(--pink); font-size: 23px; cursor: pointer; }

/* ---------------- wrap / sections ---------------- */
.zz-wrap { max-width: 1536px; margin: auto; padding: 0 30px 60px; }
.zz-section { max-width: 1536px; margin: 0 auto; padding: 20px 30px 10px; }
.zz-section-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 15px; }
.zz-section-head h2 { font-size: 28px; margin: 0; }
.zz-section-title { font-size: 26px; margin: 10px 0 18px; }
.zz-see-all {
    border: 0;
    border-radius: 28px;
    padding: 11px 25px;
    color: #f33196;
    background: #fff;
    box-shadow: 0 3px 10px #24346c20;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
}

/* ---------------- category chips ---------------- */
.zz-chips { display: flex; gap: 12px; overflow-x: auto; padding: 16px 8px 22px; scrollbar-width: thin; margin: 0 0 6px; }
.zz-chip {
    flex: 1 0 96px;
    min-width: 96px;
    border: 1px solid #e7e3f4;
    border-radius: 20px;
    padding: 14px 12px;
    box-shadow: 0 5px 10px #1e377015;
    background: #fff;
    text-align: center;
    cursor: pointer;
    font-weight: 800;
    color: var(--navy);
}
.zz-chip .zz-chip-icon { display: block; font-size: 29px; margin-bottom: 7px; }
.zz-chip.zz-chip-active,
.zz-chip:hover { background: linear-gradient(#ff79b9, #fb2b93); color: #fff; }

/* ---------------- cards ---------------- */
.zz-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.zz-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px #193d7220;
    transition: transform .15s;
}
.zz-card:hover { transform: translateY(-4px); }
.zz-card-link { display: block; }
.zz-card-img { display: block; width: 100%; aspect-ratio: 1.67; object-fit: cover; background: #eaf2ff; }
.zz-card-body { padding: 9px 10px 12px; }
.zz-card-title { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; color: var(--navy); }
.zz-tag { display: inline-block; background: #dbe7ff; color: #2150a8; padding: 4px 11px; border-radius: 20px; font-size: 12px; margin-top: 6px; }

/* ---------------- page banner ---------------- */
.zz-page-banner {
    padding: 34px 30px 38px;
    background: linear-gradient(120deg, #a7e9ff, #e5f9ff 58%, #b3dcff);
    border-radius: 0 0 30px 30px;
}
.zz-page-banner h1 { font-size: 38px; margin: 0 0 5px; }
.zz-page-banner p { margin: 0; }

/* ---------------- content layout ---------------- */
.zz-content { padding-top: 25px; }
.zz-layout { display: grid; grid-template-columns: 210px 1fr; gap: 24px; }
.zz-sidebar { background: #fff; border-radius: 20px; padding: 15px; align-self: start; box-shadow: 0 4px 18px #244a7820; }
.zz-sidebar a { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 12px; border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--navy); }
.zz-sidebar a.zz-active,
.zz-sidebar a:hover { background: #ffe0ef; color: #c90a6b; }
.zz-layout .zz-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------------- tiles (categories/videos/characters) ---------------- */
.zz-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.zz-tile {
    padding: 25px;
    background: #fff;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 4px 14px #24346c1a;
    font-size: 20px;
    font-weight: bold;
    color: var(--navy);
    display: block;
}
.zz-tile span { display: block; font-size: 45px; }

/* ---------------- game player ---------------- */
.zz-player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
.zz-player { background: #101c35; border-radius: 18px; aspect-ratio: 16/9; overflow: hidden; }
.zz-player.is-vertical { max-width: 480px; margin: 0 auto; aspect-ratio: 9/16; }
.zz-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.zz-player-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: #8fa0b8; }
.zz-recommendations { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 4px 18px #244a7820; }
.zz-recommendations a { display: block; padding: 12px; border-bottom: 1px solid #eee; color: var(--navy); }
.zz-recommendations h3 { margin: 8px 0; }

/* ---------------- game detail info ---------------- */
.zz-game-info { max-width: 800px; }
.zz-game-title { font-size: 30px; margin: 16px 0 10px; letter-spacing: -0.5px; }
.zz-game-genres { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.zz-badge { background: #dbe7ff; color: #2150a8; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.zz-badge:hover { background: #c9dcff; }
.zz-game-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.zz-meta-pill { background: #fff; border: 1px solid #e7e3f4; border-radius: 999px; padding: 5px 12px; font-size: 13px; color: #33415a; }
.zz-game-external { color: #5b6b82; font-size: 13px; }
.zz-game-desc { color: #33415a; font-size: 16px; }
.zz-game-desc h2, .zz-game-howto h2 { font-size: 20px; margin: 24px 0 8px; }
.zz-game-howto { background: #fff; border: 1px solid #e7e3f4; border-radius: 16px; padding: 18px 20px; margin-top: 8px; }
.zz-game-howto p { margin: 0; color: #33415a; }
.zz-crumb { padding: 14px 0 0; font-size: 14px; color: #5b6b82; }
.zz-crumb a { color: #2150a8; }

/* ---------------- pagination ---------------- */
.zz-pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 10px 0 40px; }
.zz-page { display: inline-block; padding: 8px 14px; border: 1px solid #e7e3f4; border-radius: 10px; background: #fff; color: var(--navy); font-weight: 700; }
.zz-page.current { background: linear-gradient(#ff7bbb, #fa278e); color: #fff; border-color: transparent; }
.zz-page:hover { border-color: #f95ca8; }

/* ---------------- toolbar ---------------- */
.zz-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.zz-sort { padding: 10px 14px; border: 1px solid #e7e3f4; border-radius: 12px; font-size: 14px; background: #fff; color: var(--navy); }

/* ---------------- empty / page ---------------- */
.zz-empty { padding: 35px; text-align: center; color: #5b6b82; }
.zz-page { max-width: 760px; margin: 0 auto; }
.zz-page-content { color: #33415a; font-size: 16px; }
.zz-btn { display: inline-block; border-radius: 28px; padding: 12px 26px; background: var(--pink); color: #fff; font-weight: bold; }

/* ---------------- footer ---------------- */
.zz-footer { text-align: center; padding: 35px; background: #11224e; font-size: 14px; color: #c4cfe0; }
.zz-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; text-align: left; }
.zz-footer-brand { display: flex; gap: 12px; align-items: center; }
.zz-footer-brand img { width: 180px; object-fit: contain; }
.zz-footer-brand b { font-size: 18px; }
.zz-footer-brand span { color: #5b6b82; font-size: 13px; }
.zz-footer-links { display: flex; gap: 18px; }
.zz-footer-links a { color: #c4cfe0; font-size: 14px; font-weight: 700; }
.zz-footer-links a:hover { color: #ff7bbb; }
.zz-footer-copy { margin-top: 18px; color: #8fa0b8; }

/* ---------------- mobile menu button ---------------- */
.zz-mobile-menu { display: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1150px) {
    .zz-logo img { width: 205px; }
    .zz-nav a { padding: 10px; }
    .zz-grid { grid-template-columns: repeat(4, 1fr); }
    .zz-layout .zz-grid { grid-template-columns: repeat(3, 1fr); }
    .zz-header { gap: 9px; }
}
@media (max-width: 760px) {
    :root { --zz-header-h: 75px; }
    .zz-header { height: auto; min-height: 75px; flex-wrap: wrap; padding: 7px 12px; }
    .zz-header.zz-scrolled { min-height: 56px; padding: 5px 12px; }
    .zz-logo img { width: 170px; }
    .zz-header.zz-scrolled .zz-logo img { width: 128px; }
    .zz-mobile-menu { display: block; border: 0; background: #fff; border-radius: 16px; padding: 9px 13px; color: var(--navy); font-size: 18px; }
    .zz-nav { display: none; order: 3; width: 100%; overflow-x: auto; }
    .zz-nav.zz-open { display: flex; }
    .zz-search-header { margin-left: auto; max-width: 175px; }
    .zz-hero { aspect-ratio: 3/1; background-size: cover; background-position: center; }
    .zz-hero-search { width: 80%; height: 42px; bottom: 12%; }
    .zz-wrap, .zz-section { padding-left: 14px; padding-right: 14px; }
    .zz-chips { gap: 8px; }
    .zz-chip { flex-basis: 85px; min-width: 85px; }
    .zz-grid, .zz-layout .zz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .zz-section-head h2 { font-size: 22px; }
    .zz-layout, .zz-player-layout { grid-template-columns: 1fr; }
    .zz-sidebar { display: flex; overflow-x: auto; }
    .zz-sidebar a { white-space: nowrap; width: auto; }
    .zz-tiles { grid-template-columns: repeat(2, 1fr); }
    .zz-page-banner h1 { font-size: 30px; }
}
