:root {
    --tili-teal: #01AAB3;
    --tili-teal-dark: #008a94;
    --tili-teal-deep: #055860;
    --tili-amber: #d4893a;
    --tili-ink: #1a2b2e;
    --tili-muted: #5a6e72;
    --tili-paper: #f4f7f6;
    --tili-font-body: 'Manrope', sans-serif;
    --tili-font-display: 'Source Serif 4', Georgia, serif;
}

* { box-sizing: border-box; }

*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
}

*:focus,
*:active,
*:focus-visible {
    outline: none !important;
}

body.top200-page {
    margin: 0;
    min-height: 100vh;
    font-family: var(--tili-font-body);
    color: var(--tili-ink);
    background:
        radial-gradient(ellipse 50% 35% at 100% 0%, rgba(224, 122, 95, 0.1), transparent 50%),
        radial-gradient(ellipse 45% 30% at 0% 15%, rgba(224, 155, 61, 0.1), transparent 45%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(1, 170, 179, 0.08), transparent 50%),
        var(--tili-paper);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.top200-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(1, 170, 179, 0.15);
}

.top200-back {
    font-weight: 700;
    font-size: 14px;
    color: var(--tili-teal-deep);
    padding: 8px 12px;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.top200-back:hover {
    background: rgba(1, 170, 179, 0.12);
    color: var(--tili-teal-dark);
}

.top200-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--tili-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tili-ink);
}

.top200-header-brand img {
    width: auto;
    height: 40px;
    max-width: 140px;
    object-fit: contain;
    background: transparent;
}

.top200-header-sub {
    margin: 0;
    width: 100%;
    font-size: 13px;
    color: var(--tili-muted);
    font-weight: 600;
}

@media (min-width: 640px) {
    .top200-header-sub {
        width: auto;
        margin-left: auto;
    }
}

.top200-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.top200-hero {
    text-align: center;
    margin-bottom: 36px;
}

.top200-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tili-teal-dark);
}

.top200-hero h1 {
    margin: 0 0 10px;
    font-family: var(--tili-font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--tili-ink);
}

.top200-lead {
    margin: 0 auto;
    max-width: 34rem;
    color: var(--tili-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.top200-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.top200-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(1, 170, 179, 0.12);
    box-shadow: 0 10px 28px rgba(26, 43, 46, 0.06);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.top200-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(26, 43, 46, 0.12);
    border-color: rgba(1, 170, 179, 0.35);
}

.top200-card-media {
    aspect-ratio: 16 / 11;
    background: linear-gradient(145deg, #e6f7f8, #fff1e0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.top200-card-media img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.top200-card-body {
    padding: 16px 18px 20px;
}

.top200-card-body h2 {
    margin: 0 0 6px;
    font-family: var(--tili-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--tili-ink);
}

.top200-card-body p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--tili-muted);
}

/* --- Learn / category viewer --- */

.top200-learn-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.top200-viewer {
    background: #fff;
    border-radius: 24px;
    padding: 24px 20px 28px;
    border: 1px solid rgba(1, 170, 179, 0.14);
    box-shadow: 0 14px 40px rgba(26, 43, 46, 0.08);
    text-align: center;
}

.top200-image-wrap {
    background: linear-gradient(160deg, #f7fbfb, #fff8ef);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top200-image-wrap img {
    max-height: 260px;
    width: auto;
    border-radius: 12px;
}

.top200-play {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #01AAB3, #055860);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(1, 170, 179, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 18px;
}

.top200-play:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 14px 28px rgba(1, 170, 179, 0.42);
}

.top200-nav {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    gap: 12px;
}

.top200-nav-btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(1, 170, 179, 0.25);
    background: #e6f7f8;
    color: var(--tili-teal-deep);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.top200-nav-btn:hover {
    background: var(--tili-teal);
    color: #fff;
    transform: scale(1.04);
}

.top200-word {
    min-width: 0;
}

.top200-word #mainnum,
#mainnum {
    margin: 0 0 8px;
    font-family: var(--tili-font-display);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    color: var(--tili-teal-deep);
    line-height: 1.15;
    text-shadow: none;
    visibility: visible;
}

.top200-word #text,
#text {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: var(--tili-muted);
    line-height: 1.4;
}

.top200-hint {
    margin: 18px 0 0;
    font-size: 12px;
    color: #8aa0a4;
    font-weight: 600;
}

@media (max-width: 520px) {
    .top200-image-wrap {
        min-height: 180px;
        padding: 14px;
    }

    .top200-image-wrap img {
        max-height: 180px;
    }

    .top200-nav {
        grid-template-columns: 44px 1fr 44px;
    }

    .top200-nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
}
