:root {
  --ink: #171714;
  --dark: #171714;
  --muted: #706d66;
  --paper: #f4f1e9;
  --paper-2: #eae6dc;
  --white: #fffdf8;
  --orange: #00bfff;
  --orange-dark: #006f95;
  --accent-ink: #06212b;
  --line: rgba(23, 23, 20, .14);
  --shadow: 0 18px 55px rgba(35, 27, 17, .10);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --radius: 18px;
  color-scheme: light dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; -webkit-font-smoothing: antialiased; }
body, button, input, textarea, select { font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { color: var(--accent-ink); background: var(--orange); }

.header { position: sticky; top: 0; z-index: 80; height: 66px; border-bottom: 1px solid var(--line); background: rgba(244, 241, 233, .94); backdrop-filter: blur(16px); }
.header-inner { width: min(1240px, 100%); height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.logo picture { display: block; line-height: 0; }
.logo img { display: block; width: 148px; height: auto; }
.menu-button { margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 19px; }
.main-nav { display: none; position: fixed; inset: 66px 0 auto 0; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.main-nav.open { display: grid; }
.main-nav a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.main-nav a:last-child { border: 0; }
.header-search { display: none; margin-left: auto; width: min(290px, 28vw); height: 40px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .45); overflow: hidden; }
.header-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 15px; background: transparent; }
.header-search button { width: 42px; border: 0; background: var(--dark); color: #fff; }

.page { min-height: calc(100vh - 66px); }
.search-hero { position: relative; overflow: hidden; min-height: 520px; padding: 72px 20px 66px; text-align: center; background: radial-gradient(circle at 12% 18%,rgba(124,92,255,.13),transparent 26%),radial-gradient(circle at 88% 80%,rgba(0,191,255,.16),transparent 31%),linear-gradient(135deg,#fffdf8 0%,#f4efe4 58%,#ebe4d6 100%); color: var(--ink); isolation: isolate; }
.search-hero::before { content: ""; position: absolute; z-index: -1; width: 330px; height: 330px; left: 50%; top: -215px; border: 58px solid var(--orange); border-radius: 50%; transform: translateX(-50%); opacity: .72; }
.search-hero::after { content: "♪   ♫   ♩"; position: absolute; z-index: -1; right: -30px; bottom: 12px; color: var(--orange); font-family: var(--serif); font-size: clamp(90px,17vw,190px); letter-spacing: .08em; line-height: 1; opacity: .08; transform: rotate(-9deg); white-space: nowrap; }
.hero-icon { width: 44px; height: 44px; margin: 0 auto 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.46); color: var(--orange); font-size: 20px; }
.search-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 14vw, 92px); font-weight: 400; line-height: .91; letter-spacing: -.065em; }
.search-hero > p { max-width: 620px; margin: 25px auto 30px; color: var(--muted); line-height: 1.7; }
.hero-search, .listing-search { position: relative; display: flex; width: min(670px, 100%); margin: 0 auto; padding: 6px; border-radius: 999px; background: var(--white); box-shadow: 0 17px 50px rgba(0,0,0,.25); }
.hero-search input, .listing-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 14px; background: transparent; color: var(--ink); font-size: 14px; }
.hero-search button, .listing-search button { flex: 0 0 auto; min-height: 49px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--orange); color: var(--accent-ink); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.quick-links { margin-top: 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 13px; font-size: 11px; }
.quick-links span { color: var(--muted); }
.quick-links a { border-bottom: 1px solid var(--line); color: var(--ink); }
.suggestions { display: none; position: absolute; z-index: 100; left: 0; right: 0; top: calc(100% + 8px); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); text-align: left; }
.suggestions.open { display: block; }
.suggestions a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.suggestions a:last-child { border: 0; }
.suggestions small { color: var(--muted); text-transform: uppercase; font-size: 9px; font-weight: 800; letter-spacing: .08em; }

.content-section { width: min(1120px, 100%); margin: 0 auto; padding: 52px 16px; }
.content-section.alt { width: 100%; max-width: none; padding-left: max(16px, calc((100% - 1120px) / 2)); padding-right: max(16px, calc((100% - 1120px) / 2)); background: var(--paper-2); }
.content-section.related { border-top: 1px solid var(--line); }
.country-strip { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.country-strip > div { display: grid; gap: 5px; }
.country-strip small, .panel-kicker, .policy-page > span, .genre-banner > span, .listing-head span, .login-page form > span, .admin-head span, .admin-card-head span, .sync-card > span { color: var(--orange-dark); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.country-strip strong { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.country-strip nav { display: flex; max-width: 56vw; overflow-x: auto; scrollbar-width: none; }
.country-strip nav::-webkit-scrollbar { display: none; }
.country-strip a { flex: 0 0 auto; display: grid; place-items: center; width: 39px; height: 36px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 10px; font-weight: 800; }
.country-strip a.active { border-color: var(--orange); color: var(--ink); }
.section-title { margin: 30px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-title h2 { margin: 0; font-family: var(--serif); font-size: clamp(27px, 6vw, 38px); font-weight: 400; letter-spacing: -.04em; }
.section-title h2 span { margin-right: 9px; color: var(--orange); font-family: var(--sans); font-size: .72em; }
.section-title > a { flex: 0 0 auto; font-size: 10px; font-weight: 850; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.section-note { margin: -12px 0 20px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.chart-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 68vw); gap: 11px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.chart-card { position: relative; scroll-snap-align: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chart-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin-bottom: 13px; border-radius: 3px; background: var(--paper-2); }
.chart-card strong, .chart-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-card strong { font-size: 13px; }
.chart-card small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.rank { position: absolute; z-index: 1; top: 9px; left: 9px; padding: 5px 7px; background: var(--dark); color: #fff; font-size: 9px; font-weight: 850; }

.video-list { border-top: 1px solid var(--line); }
.video-row { min-width: 0; display: grid; grid-template-columns: 116px minmax(0, 1fr) 22px; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.video-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 5px; background: #d8d4ca; }
.video-thumb img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.video-row:hover .video-thumb img { transform: scale(1.035); }
.video-thumb > span { position: absolute; right: 5px; bottom: 5px; padding: 3px 5px; border-radius: 3px; background: rgba(0,0,0,.8); color: #fff; font-size: 8px; }
.video-info { min-width: 0; }
.video-info h3 { display: -webkit-box; overflow: hidden; margin: 0; font-size: 13px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.video-info > p { overflow: hidden; margin: 7px 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.video-info > div { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.row-arrow { color: var(--orange); font-size: 25px; text-align: right; }
.empty { padding: 34px 18px; border: 1px dashed var(--line); text-align: center; }
.empty strong { font-family: var(--serif); font-size: 23px; font-weight: 400; }
.empty p { max-width: 540px; margin: 9px auto 0; color: var(--muted); line-height: 1.6; }

.genre-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.genre-card { position: relative; min-height: 155px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px; border-radius: 18px; color: #101215; box-shadow: 0 14px 35px rgba(35,27,17,.08); transition: transform .2s,filter .2s; }
.genre-card:hover { transform: translateY(-3px); filter: saturate(1.08); }
.genre-card > span { position: relative; z-index: 1; min-width: 0; display: grid; gap: 9px; }
.genre-card strong { font-size: 20px; line-height: 1.1; }
.genre-card small { max-width: 150px; font-size: 10px; line-height: 1.45; opacity: .77; }
.genre-card svg { flex: 0 0 auto; width: 84px; height: 84px; color: rgba(16,18,21,.88); filter: drop-shadow(0 5px 0 rgba(255,255,255,.13)); }
.genre-color-1 { background: linear-gradient(135deg,#54b6ea,#1781b9); }
.genre-color-2 { background: linear-gradient(135deg,#ffb13b,#ef6e0d); }
.genre-color-3 { background: linear-gradient(135deg,#7bd580,#34945a); }
.genre-color-4 { background: linear-gradient(135deg,#4c5b75,#263247); }
.genre-color-5 { background: linear-gradient(135deg,#ce8cff,#8d55ce); }
.genre-color-6 { background: linear-gradient(135deg,#ff947f,#e8584d); }
.genre-color-7 { background: linear-gradient(135deg,#76ded4,#2a9a99); }
.genre-color-8 { background: linear-gradient(135deg,#ffe269,#eeb52f); }
.genre-color-9 { background: linear-gradient(135deg,#ff7f7d,#cf3d51); }
.genre-color-10 { background: linear-gradient(135deg,#f38ac2,#b64386); }
.genre-color-11 { background: linear-gradient(135deg,#8d9cff,#5966ca); }
.genre-color-12 { background: linear-gradient(135deg,#72d9f5,#2395c2); }
.genre-card.genre-color-4,.genre-card.genre-color-11 { color: #fff; }
.genre-card.genre-color-4 svg,.genre-card.genre-color-11 svg { color: rgba(255,255,255,.9); }
.search-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.search-cloud a { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.25); font-size: 11px; }
.search-cloud small { color: var(--orange-dark); }

.listing-page { width: min(980px, 100%); min-height: 70vh; margin: 0 auto; padding: 38px 16px 70px; }
.listing-search { margin-bottom: 44px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.listing-head { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.listing-head h1, .genre-banner h1 { margin: 7px 0 0; font-family: var(--serif); font-size: clamp(40px, 10vw, 72px); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
.listing-head > small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.results .video-row { grid-template-columns: 125px minmax(0,1fr) 22px; }
.genre-banner { position: relative; min-height: 270px; margin: -38px -16px 35px; padding: 46px 20px; overflow: hidden; display: grid; justify-items: center; align-content: center; color: #101215; text-align: center; }
.genre-banner svg { position: absolute; right: max(25px,8%); width: 150px; height: 150px; color: rgba(16,18,21,.16); }
.genre-banner > span,.genre-banner h1,.genre-banner p { position: relative; z-index: 1; }
.genre-banner p { margin: 18px auto 0; color: rgba(16,18,21,.68); }
.genre-banner.genre-color-4,.genre-banner.genre-color-11 { color: #fff; }
.genre-banner.genre-color-4 p,.genre-banner.genre-color-11 p { color: rgba(255,255,255,.72); }
.genre-banner.genre-color-4 svg,.genre-banner.genre-color-11 svg { color: rgba(255,255,255,.18); }
.genre-directory { width: min(1120px,100%); margin: 0 auto; padding: 52px 16px 90px; }
.genre-directory > header { max-width: 760px; margin-bottom: 54px; }
.genre-directory > header > span { color: var(--orange-dark); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.genre-directory > header h1 { margin: 10px 0 18px; font-family: var(--serif); font-size: clamp(48px,11vw,86px); font-weight: 400; letter-spacing: -.06em; line-height: .95; }
.genre-directory > header p,.directory-heading p { color: var(--muted); line-height: 1.65; }
.genre-directory > section { margin-top: 50px; }
.directory-heading { margin-bottom: 22px; display: flex; align-items: start; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.directory-heading > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--accent-ink); font-size: 9px; font-weight: 850; }
.directory-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(29px,6vw,42px); font-weight: 400; letter-spacing: -.04em; }
.directory-heading p { margin: 6px 0 0; font-size: 11px; }
.top-search-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.top-search-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.top-search-list li > span { color: var(--orange-dark); font-family: var(--serif); font-size: 18px; }
.top-search-list a { overflow: hidden; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.top-search-list small { color: var(--muted); font-size: 9px; }

.media-page { width: min(1160px, 100%); margin: 0 auto; padding: 22px 16px 55px; display: grid; gap: 24px; }
.media-main, .settings-card { min-width: 0; }
.player-wrap { overflow: hidden; border-radius: 8px; background: #000; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.player-wrap iframe { width: 100%; height: 100%; border: 0; }
.media-copy { padding: 23px 0; border-bottom: 1px solid var(--line); }
.media-title { display: flex; align-items: start; gap: 16px; }
.media-title > div { min-width: 0; flex: 1; }
.media-title span { color: var(--orange-dark); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.media-title h1 { margin: 7px 0 9px; font-family: var(--serif); font-size: clamp(30px, 7vw, 50px); font-weight: 400; line-height: 1; letter-spacing: -.045em; }
.media-title p, .description { color: var(--muted); line-height: 1.65; }
.media-title p { margin: 0; font-size: 11px; }
.description { margin: 20px 0 0; font-size: 12px; }
.social-share { margin-top: 19px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.social-share > span { margin-right: 3px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.social-share a, .social-share button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.social-share a:hover, .social-share button:hover, .social-share button.copied { border-color: var(--orange); background: var(--orange); color: var(--accent-ink); transform: translateY(-2px); }
.social-share svg { width: 18px; height: 18px; }
.share-button, .ghost { flex: 0 0 auto; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.download-panel { align-self: start; padding: 25px; border-radius: var(--radius); background: var(--dark); color: #fff; box-shadow: var(--shadow); }
.download-panel h2 { margin: 9px 0 22px; font-family: var(--serif); font-size: 31px; font-weight: 400; letter-spacing: -.04em; }
.download-list { display: grid; gap: 8px; }
.download-list a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.06); }
.download-list span { min-width: 0; display: grid; gap: 4px; }
.download-list b { color: var(--orange); font-size: 8px; letter-spacing: .1em; }
.download-list strong { font-size: 12px; }
.download-list small { color: rgba(255,255,255,.55); font-size: 9px; }
.download-list i { color: var(--orange); font-size: 22px; font-style: normal; }
.download-unavailable { padding: 25px 16px; border: 1px dashed rgba(255,255,255,.2); border-radius: 10px; text-align: center; }
.download-unavailable > b { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%; background: var(--orange); color: var(--accent-ink); }
.download-unavailable strong { display: block; }
.download-unavailable p { margin: 9px 0 0; color: rgba(255,255,255,.58); font-size: 10px; line-height: 1.55; }
.youtube-button { min-height: 48px; margin-top: 12px; display: grid; place-items: center; border-radius: 999px; background: var(--orange); color: var(--accent-ink); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.rights-note { display: block; margin-top: 13px; color: rgba(255,255,255,.45); font-size: 8px; text-align: center; }

.policy-page { width: min(760px, calc(100% - 32px)); min-height: 68vh; margin: 0 auto; padding: 68px 0 90px; }
.policy-page h1 { margin: 10px 0 30px; font-family: var(--serif); font-size: clamp(42px, 10vw, 72px); font-weight: 400; letter-spacing: -.05em; }
.policy-page h2 { margin-top: 34px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.policy-page p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.policy-page a { text-decoration: underline; text-underline-offset: 3px; }
.primary-link { display: inline-flex; margin-top: 20px; padding: 13px 18px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 10px; font-weight: 850; text-decoration: none !important; text-transform: uppercase; }

.login-page { min-height: 72vh; display: grid; place-items: center; padding: 50px 16px; }
.login-page form { width: min(430px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.login-page h1 { margin: 8px 0 27px; font-family: var(--serif); font-size: 42px; font-weight: 400; }
.login-page label, .settings-form label { display: grid; gap: 7px; margin-bottom: 14px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.login-page input, .settings-form input, .settings-form textarea, .settings-form select, .admin-video-list select { width: 100%; border: 1px solid var(--line); border-radius: 8px; outline: 0; padding: 11px 12px; background: var(--paper); color: var(--ink); font-size: 13px; text-transform: none; letter-spacing: 0; }
.login-page input:focus, .settings-form input:focus, .settings-form textarea:focus, .settings-form select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(0,191,255,.14); }
.login-page form > button, .settings-form > button, .sync-card form button, .admin-video-list button { min-height: 45px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--orange); color: var(--accent-ink); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.login-page form > button { width: 100%; margin-top: 8px; }
.alert { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; font-size: 11px; line-height: 1.5; }
.alert.error { background: #ffe2dc; color: #8a311f; }
.alert.success { background: #e0f1e5; color: #28653b; }

.admin-page { width: min(1220px, 100%); margin: 0 auto; padding: 32px 16px 80px; }
.admin-head { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.admin-head h1 { margin: 6px 0 5px; font-family: var(--serif); font-size: clamp(35px, 7vw, 55px); font-weight: 400; letter-spacing: -.04em; }
.admin-head p { margin: 0; color: var(--muted); font-size: 10px; }
.admin-tabs { margin: 0 0 22px; display: flex; gap: 7px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.admin-tabs a { flex: 0 0 auto; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--white); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.admin-tabs a.active { border-color: var(--orange); background: var(--orange); color: var(--accent-ink); }
.metric-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.metric-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.3); }
.metric-grid small { display: block; min-height: 24px; color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.metric-grid strong { display: block; margin-top: 7px; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.admin-columns { display: grid; gap: 14px; }
.admin-card { margin-top: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.38); }
.admin-card-head { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.admin-card h2 { margin: 6px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.admin-card-head em { padding: 6px 9px; border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.admin-card-head em.online { background: #dff1e5; color: #29663d; }
.admin-card-head em.offline { background: #ffe2dc; color: #8a311f; }
.form-grid { display: grid; gap: 0 12px; }
.settings-form label small { color: var(--muted); font-size: 8px; font-weight: 400; letter-spacing: 0; line-height: 1.4; text-transform: none; }
.settings-form .check { grid-template-columns: 17px 1fr; align-items: center; }
.settings-form .check input { width: auto; margin: 0; }
.settings-form fieldset { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; }
.settings-form legend { padding: 0 8px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.api-keys-fieldset { padding: 17px; }
.api-keys-fieldset > p { margin: 0 0 15px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.api-key-rows { display: grid; gap: 12px; }
.api-key-row { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); }
.api-key-row-head { margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.api-key-row-head > strong { flex: 1; color: var(--ink); font-size: 12px; }
.api-key-row-head > small { padding: 5px 8px; border-radius: 999px; background: #dff1e5; color: #29663d; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.settings-form .api-active { margin: 0; display: flex; grid-template-columns: none; align-items: center; gap: 6px; color: var(--ink); }
.settings-form .api-active input { width: auto; accent-color: var(--orange); }
.api-key-row-head > button { padding: 6px 0; border: 0; background: transparent; color: #a43722; font-size: 9px; text-decoration: underline; }
.api-key-row > label:last-child { margin-bottom: 0; }
.add-api-key { margin-top: 13px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.api-test-form { margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.api-test-form button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--orange); color: var(--accent-ink); font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.api-test-form small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.api-test-results { margin: 0 0 18px; display: grid; gap: 9px; }
.api-test-results article { padding: 12px 14px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 8px; background: var(--paper-2); }
.api-test-results article.passed { border-left-color: #2e9b55; }
.api-test-results article.failed { border-left-color: #c14930; }
.api-test-results strong { color: var(--ink); font-size: 10px; }
.api-test-results p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checks label { margin: 0; grid-template-columns: 15px 1fr; align-items: center; }
.checks input { width: auto; }
.ad-settings > p { margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.ad-settings label { margin-bottom: 15px; }
.sync-card { background: var(--dark); color: #fff; }
.sync-card p { color: rgba(255,255,255,.6); line-height: 1.65; }
.sync-card > small { display: block; margin: 18px 0; color: rgba(255,255,255,.45); }
.api-note { margin-top: 23px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.15); }
.api-note b { font-size: 11px; }
.api-note p { margin-bottom: 0; font-size: 10px; }
.admin-guide { display: grid; align-content: start; gap: 8px; }
.admin-guide h2 { margin-bottom: 12px; }
.admin-guide > a { display: grid; gap: 4px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.admin-guide > a b { font-size: 11px; }
.admin-guide > a small { color: var(--muted); font-size: 9px; }
.admin-explainer { margin-bottom: 22px; padding: 16px; border-left: 3px solid var(--orange); background: var(--paper-2); }
.admin-explainer strong { font-size: 12px; }
.admin-explainer p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.admin-downloads, .admin-video-list { border-top: 1px solid var(--line); }
.admin-downloads > div, .admin-video-list > div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-downloads span, .admin-video-list span { min-width: 0; flex: 1; display: grid; gap: 4px; }
.admin-downloads b, .admin-video-list b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-downloads small, .admin-video-list small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.admin-downloads button.danger { border: 0; background: transparent; color: #a43722; font-size: 9px; text-decoration: underline; }
.admin-video-list img { width: 58px; aspect-ratio: 16 / 9; border-radius: 4px; object-fit: cover; }
.admin-video-list form { flex: 0 0 165px; display: flex; gap: 5px; }
.admin-video-list select { min-width: 0; padding: 7px; }
.admin-video-list button { min-height: 34px; padding: 0 10px; }

.footer { padding: 44px 20px 102px; display: grid; gap: 24px; border-top: 1px solid var(--line); background: var(--dark); color: #fff; }
.footer > div p { max-width: 470px; color: rgba(255,255,255,.52); font-size: 11px; line-height: 1.7; }
.footer nav { display: flex; flex-wrap: wrap; gap: 13px 22px; }
.footer nav a { color: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.footer small { color: rgba(255,255,255,.35); font-size: 9px; }
.footer-logo img { width: 190px; }
.bottom-nav { position: fixed; z-index: 90; left: 10px; right: 10px; bottom: 10px; height: 62px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(23,23,20,.94); color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.28); backdrop-filter: blur(15px); }
.bottom-nav a { display: grid; place-items: center; gap: 2px; color: rgba(255,255,255,.63); font-size: 8px; }
.bottom-nav b { color: var(--orange); font-size: 16px; font-weight: 400; }
.ad-slot { width: min(970px,calc(100% - 32px)); margin: 18px auto; overflow: hidden; text-align: center; }
.ad-slot > small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.ad-slot > div { max-width: 100%; overflow: hidden; }
.ad-slot iframe, .ad-slot img { max-width: 100%; }
.ad-slot-after_trending { margin-top: 8px; margin-bottom: 8px; }

.seo-guide { width: min(1120px, calc(100% - 32px)); margin: 18px auto 76px; content-visibility: auto; contain-intrinsic-size: 920px; }
.seo-guide > header { max-width: 710px; margin-bottom: 28px; }
.seo-guide > header > span { color: var(--orange-dark); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.seo-guide > header h2 { margin: 9px 0 15px; font-family: var(--serif); font-size: clamp(36px, 8vw, 61px); font-weight: 400; letter-spacing: -.055em; line-height: .98; }
.seo-guide > header p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.seo-guide > div { display: grid; gap: 10px; }
.seo-guide article { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.seo-guide article h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.025em; }
.seo-guide article p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.seo-guide > nav { margin-top: 18px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.seo-guide > nav a { flex: 0 0 auto; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2); font-size: 9px; font-weight: 850; }
.seo-guide > nav span { color: var(--orange-dark); }
.curated-page .listing-head { align-items: start; }
.curated-page .listing-head p { max-width: 640px; margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

@media (min-width: 600px) {
  .header-inner { padding-inline: 24px; }
  .content-section, .listing-page, .admin-page, .media-page { padding-left: 24px; padding-right: 24px; }
  .genre-directory { padding-left: 24px; padding-right: 24px; }
  .chart-grid { grid-auto-flow: initial; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: visible; }
  .video-row, .results .video-row { grid-template-columns: 178px minmax(0,1fr) 28px; gap: 19px; padding: 17px 0; }
  .video-info h3 { font-size: 16px; }
  .genre-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .genre-card { min-height: 170px; padding: 24px; }
  .seo-guide > div { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid .full { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .footer { grid-template-columns: 1fr auto; align-items: start; padding-inline: max(24px, calc((100% - 1120px) / 2)); }
  .footer small { grid-column: 1 / -1; }
}

@media (min-width: 860px) {
  .header { height: 76px; }
  .header-inner { gap: 28px; }
  .header .logo img { width: 176px; }
  .menu-button { display: none; }
  .main-nav { position: static; display: flex; align-items: center; gap: 20px; padding: 0; border: 0; background: none; box-shadow: none; }
  .main-nav a { padding: 8px 0; border: 0; font-size: 9px; }
  .main-nav a:hover { color: var(--orange-dark); }
  .header-search { display: flex; }
  .search-hero { min-height: 610px; padding-top: 96px; }
  .content-section { padding-top: 72px; padding-bottom: 72px; }
  .chart-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .genre-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .seo-guide > div { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .listing-page { padding-top: 64px; }
  .genre-banner { margin-top: -64px; }
  .media-page { grid-template-columns: minmax(0, 1.75fr) minmax(300px, .75fr); gap: 35px; padding-top: 45px; }
  .download-panel { position: sticky; top: 96px; }
  .admin-columns { grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); }
  .bottom-nav { display: none; }
  .footer { padding-bottom: 50px; }
}

@media (min-width: 1100px) {
  .main-nav { gap: 28px; }
  .header-search { width: 320px; }
  .genre-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (prefers-color-scheme: dark) {
  :root { --ink:#f4f1e9; --muted:#aaa69c; --paper:#11110f; --paper-2:#1a1916; --white:#24231f; --line:rgba(255,255,255,.14); --shadow:0 18px 55px rgba(0,0,0,.28); }
  .header { background: rgba(17,17,15,.92); }
  .header-search { background: rgba(255,255,255,.06); }
  .search-hero { background: radial-gradient(circle at 12% 18%,rgba(124,92,255,.18),transparent 28%),radial-gradient(circle at 88% 80%,rgba(0,191,255,.17),transparent 32%),linear-gradient(135deg,#171714,#171f23); color: #fff; }
  .search-hero > p,.quick-links span { color: rgba(255,255,255,.64); }
  .quick-links a { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.84); }
  .hero-icon { border-color: rgba(255,255,255,.19); background: rgba(255,255,255,.04); }
  .metric-grid article,.admin-card { background: rgba(255,255,255,.035); }
  .search-cloud a { background: rgba(255,255,255,.04); }
  .alert.error { background:#48231f; color:#ffb4a7; }
  .alert.success { background:#173b25; color:#a8e6bd; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
