/* ============================================
   GRANNY MOMMY v3 — MODERN DARK DESIGN
   Extracted from mockup-v3.html
   ============================================ */

:root {
    --bg-body: #0f0f0f;
    --bg-surface: #1a1a1a;
    --bg-card: #212121;
    --bg-card-hover: #2a2a2a;
    --bg-nav: #161616;
    --text-primary: #e8e8e8;
    --text-secondary: #999;
    --text-muted: #666;
    --accent: #ff6b00;
    --accent-hover: #ff8533;
    --accent-glow: rgba(255, 107, 0, 0.15);
    --accent-soft: rgba(255, 107, 0, 0.08);
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --radius-sm: 4px;
    --radius-lg: 8px;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.4);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === LIGHT MODE === */
[data-theme="light"] {
    --bg-body: #f5f5f5;
    --bg-surface: #fff;
    --bg-card: #fff;
    --bg-card-hover: #f0f0f0;
    --bg-nav: #fff;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #888;
    --accent: #ff6b00;
    --accent-hover: #e55d00;
    --accent-glow: rgba(255, 107, 0, 0.15);
    --accent-soft: rgba(255, 107, 0, 0.12);
    --border: rgba(0,0,0,0.1);
    --border-hover: rgba(0,0,0,0.2);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}

/* Light mode specific overrides */
[data-theme="light"] .seo-section h3 { color: #333; }
[data-theme="light"] .site-header { border-bottom: 1px solid rgba(0,0,0,0.1); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
[data-theme="light"] footer { border-top: 1px solid rgba(0,0,0,0.1); }
[data-theme="light"] .cat-card,
[data-theme="light"] .video-card { border: 1px solid rgba(0,0,0,0.1); }
[data-theme="light"] .search-bar { background: #fff; border: 1px solid rgba(0,0,0,0.1); }
[data-theme="light"] .az-panel { background: #fff; border: 1px solid rgba(0,0,0,0.1); }
[data-theme="light"] .seo-section { background: #fff; border: 1px solid rgba(0,0,0,0.1); }
[data-theme="light"] .seo-fade { background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1)); }
[data-theme="light"] .search-bar-tags a,
[data-theme="light"] .az-categories a { background: #f5f5f5; border: 1px solid rgba(0,0,0,0.1); color: #333; }
[data-theme="light"] .az-tab { background: #f5f5f5; border: 1px solid rgba(0,0,0,0.1); color: #333; }
[data-theme="light"] .pagination li a,
[data-theme="light"] .pagination a { background: #fff; border: 1px solid rgba(0,0,0,0.1); color: #333; }
[data-theme="light"] .search-bar-more { background: #fff; }
[data-theme="light"] .theme-toggle { background: #f5f5f5; border: 1px solid rgba(0,0,0,0.1); color: #555; }

/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* === HAMBURGER MENU (mobile) === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
    order: -1;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.main-content { padding-top: 16px; }

/* === HEADER === */
.site-header {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    z-index: 100000;
    position: relative;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    line-height: 1.1;
}

.site-logo span {
    background: linear-gradient(135deg, #ff6b00 0%, #ffaa33 50%, #ff6b00 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 4s ease-in-out infinite;
}

@keyframes logoShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.site-logo small {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    font-size: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 1px;
}

.site-logo small::before,
.site-logo small::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--text-secondary);
    opacity: 0.5;
    max-width: 20px;
}

/* === NAVIGATION (desktop) === */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    margin-left: 40px;
}

/* Hide sidebar overlay on desktop */
.nav-overlay { display: none; }

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--accent);
    background: var(--accent-glow);
}

.main-nav a.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.main-nav a i { font-size: 12px; }

/* === CATEGORIES DROPDOWN === */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    min-width: 600px;
    max-height: 450px;
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 100001;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    width: 25%;
    padding: 6px 10px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
}

.nav-dropdown-menu a:hover {
    color: var(--accent);
    background: var(--accent-glow);
}

.nav-dropdown-footer {
    width: 100%;
    text-align: center;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

.nav-dropdown-viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--accent);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    transition: all var(--transition);
}

.nav-dropdown-viewall:hover {
    background: var(--accent-hover);
    color: #fff !important;
}

/* Dropdown scrollbar */
.nav-dropdown-menu::-webkit-scrollbar { width: 6px; }
.nav-dropdown-menu::-webkit-scrollbar-track { background: var(--bg-surface); }
.nav-dropdown-menu::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* Light mode dropdown */
[data-theme="light"] .nav-dropdown-menu {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

/* === SEARCH === */
.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: visible;
    flex: 0 1 320px;
    min-width: 180px;
    margin-left: auto;
    transition: all var(--transition);
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-form input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
}

.search-form input[type="text"]::placeholder { color: var(--text-muted); }

.search-form button {
    background: var(--accent);
    border: none;
    padding: 10px 16px;
    color: #fff;
    cursor: pointer;
    transition: background var(--transition);
    border-radius: 0 999px 999px 0;
}

.search-form button:hover { background: var(--accent-hover); }

/* === THEME TOGGLE === */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 14px;
}

.theme-toggle:hover {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: var(--accent);
}

/* Theme toggle in header — don't shrink */
.site-header .theme-toggle {
    flex-shrink: 0;
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb i { font-size: 8px; color: var(--text-muted); }

.breadcrumb span { color: var(--text-primary); }

/* === FILTERS TOGGLE BUTTON === */
.filters-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.filters-toggle:hover,
.filters-toggle.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}

.filters-toggle i { font-size: 12px; }

/* === SORT FILTERS === */
.sort-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.sort-filters a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
}

.sort-filters a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}

.sort-filters a.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.sort-filters a i { font-size: 11px; }

/* === SECTION TITLES === */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.section-title h1,
.section-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title .badge {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.section-title .view-all {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.section-title .view-all:hover { color: var(--accent); }

/* === UNIFIED GRID (category + video) === */
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

/* === CATEGORY CARDS === */
.cat-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}

.cat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cat-card .thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cat-card:hover img { transform: scale(1.04); }

.cat-card .cat-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.cat-card .cat-info {
    padding: 8px 10px;
}

.cat-card .cat-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color var(--transition);
}

.cat-card:hover .cat-name { color: var(--accent); }

/* === VIDEO CARDS === */
.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}

.video-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.video-card .thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover img { transform: scale(1.04); }

.video-card .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.video-card .views-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.video-card .video-info {
    padding: 8px 8px;
}

.video-card .video-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.video-card:hover .video-title { color: var(--accent); }

/* === SEARCH BAR (inline, one-row) === */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    margin-bottom: 24px;
}

.search-bar .search-bar-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
}

.search-bar.expanded { flex-wrap: wrap; }

.search-bar.expanded .search-bar-tags {
    flex-wrap: wrap;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
}

.search-bar-label {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-bar-label i { font-size: 12px; margin-right: 4px; }

.search-bar-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    white-space: nowrap;
}

.search-bar-tags a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}

.search-bar-more {
    flex-shrink: 0;
    padding: 5px 12px;
    background: var(--bg-card);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.search-bar-more:hover { background: var(--accent); color: #fff; }

/* === SEO SECTION === */
.seo-section {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.seo-section h2 { font-size: 18px; color: var(--text-primary); margin-bottom: 4px; }
.seo-section h3 { font-size: 15px; color: var(--text-primary); margin: 16px 0 8px; }
.seo-section p { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }

.seo-hidden { display: none; }

/* === CSS-ONLY SHOW MORE (checkbox hack — Google sees full text) === */
.seo-toggle-checkbox { display: none; }

.seo-text-content {
    max-height: 160px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.seo-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(26,26,26,0), rgba(26,26,26,1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.seo-toggle-checkbox:checked ~ .seo-text-content {
    max-height: 2000px;
}

.seo-toggle-checkbox:checked ~ .seo-text-content .seo-fade {
    opacity: 0;
    pointer-events: none;
}

.seo-btn {
    display: block;
    text-align: center;
    cursor: pointer;
    margin-top: -20px; position: relative; z-index: 2;
}

.seo-show-more, .seo-show-less {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    background: var(--bg-surface);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(255,107,0,0.25);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.seo-show-more:hover, .seo-show-less:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.seo-show-less { display: none; }
.seo-toggle-checkbox:checked ~ .seo-btn .seo-show-more { display: none; }
.seo-toggle-checkbox:checked ~ .seo-btn .seo-show-less { display: inline-flex; }

/* Homepage toggle (JS-based — kept for backward compat) */
.toggle-wrap { text-align: center; }

.toggle-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(255,107,0,0.3);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    margin-top: 12px;
}

.toggle-more-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.pagination li a,
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-decoration: none;
}

.pagination li a:hover,
.pagination a:hover {
    color: var(--accent);
    background: var(--accent-glow);
    border-color: var(--accent);
}

.pagination li.active a,
.pagination a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination .page-dots {
    color: var(--text-muted);
    padding: 0 4px;
    font-size: 14px;
}

/* === A-Z CATEGORY PANEL === */
.az-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin-bottom: 32px;
    text-align: center;
}

.az-panel-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.az-search-wrap {
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px;
}

.az-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.az-search {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all var(--transition);
}

.az-search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.az-search::placeholder { color: var(--text-muted); }

.az-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}

.az-tab {
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.az-tab sup {
    font-size: 9px;
    color: var(--accent);
    margin-left: 1px;
    font-weight: 600;
}

.az-tab:hover:not(.disabled) {
    color: var(--accent);
    background: var(--accent-glow);
    border-color: var(--accent);
}

.az-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.az-tab.active sup { color: #fff; }
.az-tab.disabled { opacity: 0.3; cursor: default; }

.az-status {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.az-count { color: var(--accent); font-weight: 700; }
.az-letter { color: var(--text-primary); font-weight: 600; }

.az-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.az-categories a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.az-categories a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}

.az-show-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(255,107,0,0.3);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.az-show-more:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255,107,0,0.4);
    transition: all var(--transition);
    z-index: 99;
}

.scroll-top.show { display: flex; }

.scroll-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

/* === FOOTER === */
footer {
    background: var(--bg-nav);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-logo span { color: var(--accent); }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.footer-links a:hover { color: var(--accent); }

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rta-badge, .asacp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    letter-spacing: 1px;
}

.footer-copy {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === MOBILE BANNER (only mobile) === */
.mobile-banner-top { display: none; margin: 15px 0; }
.mobile-banner-container {
    width: 300px;
    height: 100px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === NATIVE/OUTSTREAM AD SLOTS === */
.native-ad-slot, .outstream-ad-slot { margin: 12px 0; }

/* When ad is inside a grid, span full width */
.thumb-grid .native-ad-slot,
.thumb-grid .outstream-ad-slot {
    grid-column: 1 / -1;
    margin: 4px 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS (GWP-inspired)
   1280+  : 4 col, full header
   1101-1280: 4 col, compact header (smaller search/nav)
   1100-  : hamburger, search full row
   999-   : 3 col grid
   767-   : 2 col grid, mobile banner
   479-   : smaller spacing
   ============================================ */

/* === COMPACT HEADER (1101-1280px) === */
@media screen and (min-width: 1101px) and (max-width: 1280px) {
    .site-header .container { gap: 16px; }
    .site-logo { font-size: 20px; }
    .main-nav { margin-left: 32px; gap: 2px; }
    .main-nav a { padding: 7px 10px; font-size: 12px; }
    .search-form { flex: 0 1 240px; min-width: 160px; }
}

/* === HAMBURGER MENU (1100px and below) — Slide-in Sidebar === */
@media screen and (max-width: 1100px) {
    .hamburger { display: flex; order: 1; }
    .site-logo { order: 2; flex-wrap: nowrap; }
    .site-logo small { display: none; }
    .search-form { order: 3; flex: 1; min-width: 150px; margin-left: auto; }
    .theme-toggle { order: 4; margin-left: auto; }
    .site-header .container { flex-wrap: nowrap; gap: 10px; }

    .main-nav {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: var(--bg-surface);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        z-index: 2000;
        overflow-y: auto;
        padding: 60px 0 20px;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,0.5);
        text-align: left;
    }

    .main-nav.active { left: 0; display: flex; }

    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 500;
        color: var(--text-secondary);
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        margin-bottom: 0;
    }

    .main-nav a:hover {
        background: var(--accent-glow);
        color: var(--accent);
    }

    .main-nav a.active {
        color: var(--accent);
        background: var(--accent-glow);
    }

    .main-nav a i { display: inline-block; width: 24px; font-size: 14px; color: var(--accent); }

    /* Close button (X) inside sidebar */
    .hamburger.active {
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 2001;
        background: var(--bg-surface);
        border: none;
    }

    .hamburger.active span { background: var(--text-primary); }

    /* Overlay behind sidebar */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1999;
    }

    .nav-overlay.active { display: block; }

    /* Categories dropdown: full width in sidebar */
    .nav-dropdown { width: 100%; }
    .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 500;
        color: var(--text-secondary);
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        width: 100%;
    }
    .nav-dropdown:hover .nav-dropdown-menu { opacity: 0; visibility: hidden; }
    .nav-dropdown.active .nav-dropdown-menu {
        opacity: 1; visibility: visible; transform: translateY(0);
        position: static; min-width: 100%; max-height: 350px;
        margin-top: 0; padding: 8px;
        background: var(--bg-card);
        border-radius: var(--radius-sm);
    }
    .nav-dropdown-menu a {
        width: 100%;
        background: var(--bg-surface);
        color: var(--text-secondary);
        font-size: 13px;
        text-transform: capitalize;
        padding: 8px 12px;
        margin-bottom: 0;
        font-weight: 500;
        letter-spacing: 0;
    }
    .nav-dropdown-menu a:hover {
        color: var(--accent);
        background: var(--accent-glow);
    }
}

/* === TABLET (3 columns, 999px) === */
@media screen and (max-width: 999px) {
    .thumb-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-dropdown-menu a { width: 33.33%; }
}

/* === MOBILE (2 columns, 767px) === */
@media screen and (max-width: 767px) {
    .thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .section-title h1, .section-title h2 { font-size: 16px; }
    .mobile-banner-top { display: block; }
    .video-card .video-info { padding: 5px 6px; }
    .video-card .video-title { font-size: 11px; }
    .cat-card .cat-info { padding: 5px 6px; }
    .cat-card .cat-name { font-size: 11px; }
    .breadcrumb { font-size: 11px; gap: 5px; margin-bottom: 8px; }
    .sort-filters a { padding: 5px 10px; font-size: 12px; }
    .seo-section { padding: 14px; }
    .az-panel { padding: 14px 10px; }
    .nav-dropdown-menu a { width: 50%; }
    /* Search bar goes to its own row, toggle stays with logo */
    .site-header .container { flex-wrap: wrap; }
    .theme-toggle { order: 3; }
    .search-form { order: 5; flex: 1 1 100%; min-width: 100%; margin-left: 0; margin-top: 8px; }
    .container { padding: 0 8px; }
}

/* === SMALL MOBILE (479px) === */
@media screen and (max-width: 479px) {
    .thumb-grid { gap: 4px; }
    .container { padding: 0 6px; }
    .search-form input[type="text"] { font-size: 16px; /* Prevents iOS zoom */ }
    .section-title h1, .section-title h2 { font-size: 14px; }
    .video-card .video-title { font-size: 10px; }
    .cat-card .cat-name { font-size: 10px; }
    .video-card .duration, .video-card .views-badge, .cat-card .cat-count { font-size: 9px; padding: 2px 5px; }
}

/* === NATIVE AD DARK/LIGHT TOGGLE === */
.native-ad-light { display: none; }
[data-theme="light"] .native-ad-dark { display: none; }
[data-theme="light"] .native-ad-light { display: block; }
