/* Combined CSS from search.php, index.php, and existing styles.css */

/* =========== ROOT VARIABLES =========== */
:root {
    /* From search.php and existing */
    --bg: #020617;
    --surface: #020617;
    --surface-soft: #020617;
    --border: rgba(148,163,184,0.35);
    --accent: #38bdf8;
    --accent-soft: rgba(56,189,248,0.15);
    --accent-strong: #0ea5e9;
    --text: #e5e7eb;
    --text-soft: #9ca3af;
    --text-softer: #6b7280;
    --danger: #fb7185;
    --shadow-soft: 0 18px 45px rgba(15,23,42,0.85);
    --radius-xl: 1.25rem;
    
    /* From index.php/search.php card styles */
    --qtp-card-bg: rgba(15, 23, 42, 0.9);
    --qtp-blue-mid: #3b82f6;
    --qtp-text-muted: #94a3b8;
    --navy: #0b1120;
    --navy-dark: #020617;
    --navy-darker: #000;
    --text-muted: #9ca3af;
    --text-main: #1f2937;
}

/* =========== BASE STYLES =========== */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #020617, #020617 55%, #000 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========== LAYOUT & CONTAINERS =========== */
.page {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 2.5rem;
}

.content {
    max-width: 1360px;
    margin: 0 auto;
    padding: 10px 16px 48px;
}

/* =========== HEADER & NAVIGATION =========== */
header {
    margin-bottom: 0px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    margin-bottom: 0px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: 1;
}

.logo-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0%, #38bdf8, transparent 55%),
                radial-gradient(circle at 70% 100%, #0ea5e9, transparent 55%),
                linear-gradient(145deg, #020617, #0b1120);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.6),
                0 18px 45px rgba(15, 23, 42, 0.95);
    flex-shrink: 0;
}

.logo-circle span {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e5f2ff;
}

.brand-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 200px;
}

.brand-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-soft);
}

/* =========== SEARCH FORMS =========== */
.yt-header-center {
    flex: 0 1 640px;
    display: flex;
    justify-content: center;
}

.yt-search, .hero-search-form {
    display: flex;
    width: 100%;
    max-width: 520px;
}

.yt-search-input, .hero-search-input {
    flex: 1;
    background: #020617;
    border: 1px solid rgba(148,163,184,0.65);
    border-right: none;
    padding: 0.45rem 0.8rem;
    border-radius: 999px 0 0 999px;
    color: var(--text);
    font-size: 0.88rem;
}

.yt-search-input::placeholder, .hero-search-input::placeholder {
    color: var(--text-softer);
}

.yt-search-button {
    border-radius: 0 999px 999px 0;
    border: 1px solid rgba(148,163,184,0.8);
    background: var(--accent-soft);
    color: var(--text);
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.yt-search-button:hover {
    background: var(--accent-strong);
    color: #0b1120;
}

.discover-search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid #c7d7ff;
    padding: 4px 6px 4px 10px;
}

.discover-search input[type="text"] {
    border: none;
    outline: none;
    font-size: 13px;
    padding: 4px 6px;
    background: transparent;
    min-width: 160px;
}

.discover-search button {
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
}

.discover-search button:hover {
    background: #1872c4;
}

/* =========== NAVIGATION =========== */
.nav-shell {
    margin-top: 0px;
    border-bottom: 0px;
    padding-bottom: 0px;
}

.nav-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

.nav-main {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.nav-main-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-soft);
    padding-bottom: 0.35rem;
}

.nav-links {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.25rem;
}

.nav-links a {
    font-size: 0.82rem;
    padding: 0.45rem 0.6rem 0.4rem;
    border-bottom: 2px solid transparent;
    color: var(--text-soft);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
    border-bottom-color: rgba(148,163,184,0.7);
}

.nav-links a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 500;
}

/* =========== TOP ACTIONS =========== */
.top-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 500px;
}

.yt-icon-button {
    background: transparent;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.35rem;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 20px;
}

.yt-icon-button:hover {
    border-color: rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.9);
    color: var(--text);
}

.yt-user-name {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-right: 0.15rem;
}

.auth-link {
    font-size: 0.82rem;
    color: var(--accent);
}

.account-link {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 60%),
                rgba(15, 23, 42, 0.96);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.account-link span.icon {
    font-size: 0.9rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.67rem;
    color: var(--text-muted);
}

.pill strong {
    font-weight: 500;
    color: var(--accent);
}

.nav-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-meta-pill {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.96);
}

.nav-meta-pill span {
    color: var(--accent);
}

/* =========== HERO & DISCOVER SECTIONS =========== */
.hero {
    border-radius: 1.1rem;
    padding: 1.1rem 1.25rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.55), transparent 60%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.45), transparent 65%),
                linear-gradient(to bottom right, #020617, #020617);
    border: 1px solid var(--border);
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.hero-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 540px;
}

.hero-badge {
    margin-top: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 0.75rem;
    background: rgba(15, 23, 42, 0.96);
}

.counter {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-controls {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.hero-controls .counter {
    margin-top: 0;
}

.hero-search {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: min(320px, 100%);
}

.hero-search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.hero-search-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.92);
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    white-space: nowrap;
}

.hero-search-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-search-tag.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

/* Discover header */
.discover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 2px 8px;
    gap: 16px;
}

.discover-head-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.discover-title {
    font-size: 22px;
    font-weight: bold;
}

.discover-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.discover-submenu {
    max-width: 1360px;
    margin: 0 auto 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 2px;
}

.discover-chip {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #c7d5e0;
    background: rgba(255,255,255,0.8);
    font-size: 13px;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
}

.discover-chip:hover {
    background: #ffffff;
    border-color: var(--accent);
}

.discover-chip.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* =========== CARD STYLES =========== */
/* Results grid */
.qtp-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

/* IDENTICAL CARD SIZES */
.qtp-card {
    background: var(--qtp-card-bg);
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(148, 163, 184, 0.4);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    height: 260px;          /* fixed total height for all cards */
}

.qtp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.qtp-card-image {
    height: 130px;          /* fixed image height */
    background: #d1d5db;
    position: relative;
    overflow: hidden;
}

.qtp-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* when no image / broken image */
.qtp-card-image-empty {
    background: linear-gradient(135deg, #e5e7eb, #cbd5f5);
}

.qtp-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow: hidden;
}

.qtp-card-meta {
    font-size: 10px;
    color: var(--qtp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qtp-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;      /* max 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qtp-card-footer {
    margin-top: auto;
    font-size: 10px;
    color: var(--qtp-text-muted);
}

/* =========== HERO GRID =========== */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.card-link { 
    text-decoration: none; 
    color: inherit; 
    display: block; 
    height: 100%; 
}

.hero-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 14px 18px 18px; 
    display: flex; 
    flex-direction: column; 
    flex: 1;
    color:white;
}

.hero-card img { 
    width: 100%; 
    height: 300px; 
    object-fit: cover; 
    display: block; 
}

.hero-body { 
    padding: 14px 18px 18px; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
    color:white; 
}

.hero-label { 
    font-size: 11px; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: .08em; 
    color: var(--accent); 
    margin-bottom: 6px; 
}

.hero-title { 
    font-size: 22px; 
    font-weight: bold; 
    margin-bottom: 8px; 
}

.hero-description { 
    font-size: 14px; 
    color: var(--text-muted); 
    margin-bottom: 10px; 
}

.hero-meta { 
    font-size: 12px; 
    color: var(--text-muted); 
    margin-top: auto; 
}

/* =========== DISCOVER GRID =========== */
.section-heading { 
    font-size: 18px; 
    margin: 22px 2px 10px; 
    font-weight: bold; 
}

.discover-grid { 
    display: grid; 
    grid-template-columns: repeat(12, 1fr); 
    gap: 18px; 
}

.discover-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    display: flex; 
    flex-direction: column;
    min-height: 260px;
}

.discover-card img { 
    width: 100%; 
    height: 170px; 
    object-fit: cover; 
    display: block; 
}

.discover-body { 
    padding: 12px 16px 14px; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
}

.discover-label { 
    font-size: 11px; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: .06em; 
    color: var(--accent); 
    margin-bottom: 6px; 
}

.discover-card-title { 
    font-size: 16px; 
    font-weight: bold; 
    margin-bottom: 6px; 
}

.discover-description { 
    font-size: 13px; 
    color: var(--text-muted); 
    margin-bottom: 10px; 
}

.discover-meta { 
    font-size: 12px; 
    color: var(--text-muted); 
    margin-top: auto; 
}

.discover-card--ad { 
    border: 2px dashed #ffcc66; 
}

.discover-card--ad .discover-label { 
    color: #ff9800; 
}

/* =========== CARD ACTIONS =========== */
.card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
}

.card-actions button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    -webkit-tap-highlight-color: rgba(255,255,255,0.1);
}

.card-actions button:hover {
    background: #eef2ff;
    color: var(--accent);
}

.card-actions button.liked {
    color: #ef4444;
}

.card-actions button.liked:hover {
    color: #dc2626;
}

.card-actions .count { 
    font-weight: bold; 
}

/* =========== STATUS & LOADER =========== */
.qtp-status {
    text-align: center;
    font-size: 12px;
    color: var(--qtp-text-muted);
    margin-top: 18px;
}

.qtp-loader {
    margin: 10px auto 6px;
    border-radius: 999px;
    border: 2px solid #cbd5f5;
    border-top-color: var(--qtp-blue-mid);
    width: 22px;
    height: 22px;
    animation: qtp-spin 0.7s linear infinite;
}

@keyframes qtp-spin {
    to { transform: rotate(360deg); }
}

/* =========== MODALS =========== */
/* Comment Modal */
.comment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.comment-modal.active {
    display: flex;
}

.comment-modal-content {
    background: var(--bg);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.comment-modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-modal-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}

.comment-modal-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.comment-input {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.comment-submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

.comment-submit-btn:hover {
    background: var(--accent-strong);
}

.comment-close-btn {
    background: transparent;
    border: none;
    color: var(--text-soft);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: var(--bg);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.share-option {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.share-option:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--accent);
}

.share-option i {
    font-size: 24px;
    margin-bottom: 5px;
    display: block;
}

/* =========== FOOTER =========== */
footer { 
    background: var(--navy); 
    color: #fff; 
    padding: 20px 10px; 
    text-align: center; 
    font-size: 13px;
    margin-top: 30px;
}

footer a { 
    color: #cfe4ff; 
    text-decoration: none; 
}

footer a:hover { 
    text-decoration: underline; 
}

/* =========== SPAN CLASSES =========== */
.span-12 { grid-column: span 12; }
.span-6  { grid-column: span 6; }
.span-3  { grid-column: span 3; }

.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-6  { grid-column: span 6; }
.large  { grid-column: span 6; }

/* =========== QTP VIDEOS HEADER =========== */
header.qtp-videos-header {
    color: var(--text);
    background: radial-gradient(circle at top,#020617,#020617 55%,#000 100%);
    padding: 12px 16px 8px;
    margin: 0 0 14px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

header.qtp-videos-header a { 
    color: inherit; 
    text-decoration: none; 
}

header.qtp-videos-header { 
    margin-bottom: 0px; 
}

/* =========== MOBILE STYLES =========== */
/* Mobile menu toggle */
.mobile-menu-toggle {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1px;
    padding: 1px;
    cursor: pointer;
    margin-right: 12px;
}

/* Mobile Search Bar */
.mobile-search-bar {
    display: none;
    padding: 12px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
}

.mobile-search-button, .mobile-search-close {
    background: var(--accent-soft);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 300px;
    height: 100%;
    background: var(--bg);
    z-index: 1002;
    padding: 20px;
    box-shadow: 5px 0 25px rgba(0,0,0,0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1001;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text);
}

.mobile-nav-close {
    background: transparent;
    border: none;
    color: var(--text-soft);
    font-size: 24px;
    margin-left: auto;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-links a {
    padding: 15px 12px;
    color: var(--text-soft);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.mobile-nav-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.mobile-nav-login, .mobile-nav-register, .mobile-nav-logout, .mobile-nav-user {
    font-weight: 600;
    text-align: center;
    padding: 15px !important;
}

.mobile-nav-login, .mobile-nav-register {
    background: var(--accent-soft);
    color: var(--accent) !important;
}

.mobile-nav-logout, .mobile-nav-user {
    background: rgba(255,255,255,0.05);
}

/* =========== RESPONSIVE DESIGN =========== */
@media (max-width: 1100px) {
    .span-6 { grid-column: span 12; }
    .span-3 { grid-column: span 6; }
    .col-3 { grid-column: span 6; }
    .col-4 { grid-column: span 6; }
    .large { grid-column: span 12; }
    .discover-search input[type="text"] { min-width: 120px; }
    
    .brand-title { font-size: 0.85rem; }
    .yt-header-center { flex: 0 1 400px; }
    
    .comment-modal-content,
    .share-modal-content {
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 768px) {
    /* Mobile Header Adjustments */
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-search-toggle {
        display: block !important;
    }
    
    .mobile-hidden {
        display: none !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .brand-subtitle {
        display: block;
        font-size: 0.7rem;
    }
    
    .yt-header-center {
        display: none;
    }
    
    .top-actions {
        gap: 12px;
    }
    
    .nav-shell {
        display: none;
    }
    
    /* Hero Grid Mobile */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hero-card {
        min-height: 280px;
        border-radius: 12px;
    }
    
    .hero-card img {
        height: 180px;
    }
    
    .hero-title {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    /* Discover Grid Mobile */
    .discover-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .discover-card {
        min-height: 220px;
        border-radius: 10px;
    }
    
    .discover-card img {
        height: 140px;
    }
    
    .discover-card-title {
        font-size: 14px;
    }
    
    .discover-description {
        font-size: 12px;
    }
    
    /* QTP Results Grid Mobile */
    .qtp-results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .qtp-card {
        height: 240px;
    }
    
    .qtp-card-image {
        height: 120px;
    }
    
    .qtp-header,
    .qtp-nav,
    .qtp-main {
        padding-inline: 16px;
    }
    
    /* Content Padding */
    .content {
        padding: 10px 12px 40px;
    }
    
    .page {
        padding: 1rem 1rem 2rem;
    }
    
    /* Section Headings */
    .section-heading {
        font-size: 16px;
        margin: 16px 2px 10px;
    }
    
    /* Card Actions Mobile */
    .card-actions {
        justify-content: space-between;
        font-size: 11px;
    }
    
    .card-actions button {
        flex: 1;
        justify-content: center;
        padding: 8px 4px;
    }
    
    /* Mobile Search Bar Active */
    .mobile-search-bar.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    /* Mobile Menu Active */
    .mobile-nav-menu.active {
        display: block;
        transform: translateX(0);
        animation: slideIn 0.3s ease;
    }
    
    .mobile-nav-overlay.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    
    /* Modal adjustments for mobile */
    .comment-modal-content,
    .share-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        max-width: 100%;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .qtp-header,
    .qtp-nav,
    .qtp-main {
        padding-inline: 16px;
    }
}

@media (max-width: 480px) {
    header.qtp-videos-header {
        padding: 10px 12px 6px;
    }
    
    .brand {
        gap: 8px;
    }
    
    .logo-circle {
        width: 34px;
        height: 34px;
    }
    
    .brand-title {
        font-size: 0.8rem;
    }
    
    .brand-subtitle {
        font-size: 0.65rem;
    }
    
    .yt-icon-button {
        padding: 6px;
        font-size: 18px;
    }
    
    .hero-card {
        min-height: 250px;
    }
    
    .hero-card img {
        height: 150px;
    }
    
    .hero-body {
        padding: 12px 14px 14px;
    }
    
    .hero-title {
        font-size: 16px;
    }
    
    .discover-card {
        min-height: 200px;
    }
    
    .discover-card img {
        height: 120px;
    }
    
    .discover-body {
        padding: 10px 12px 12px;
    }
    
    .discover-card-title {
        font-size: 13px;
    }
    
    footer {
        padding: 15px 10px;
        font-size: 12px;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .top-actions {
        gap: 8px;
    }
    
    .hero-card img {
        height: 130px;
    }
    
    .discover-card img {
        height: 100px;
    }
    
    .mobile-search-input {
        font-size: 14px;
        padding: 10px 14px;
    }
}

/* =========== MOBILE ANIMATIONS =========== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =========== TOUCH-FRIENDLY IMPROVEMENTS =========== */
@media (hover: none) and (pointer: coarse) {
    button, .card-link, .nav-links a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .card-actions button {
        padding: 10px 5px;
    }
    
    .discover-chip {
        padding: 10px 16px;
    }
    
    /* Prevent text size adjustment on mobile */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}

/* =========== REDUCED MOTION PREFERENCES =========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}












        /* Additional styles specific to discounts page */
        .discounts-page {
            background: radial-gradient(circle at top,#020617,#020617 55%,#000 100%);
            color: #e5e7eb;
            min-height: 100vh;
        }
        
        .content {
            max-width: 100%;
            margin: 0 auto;
            padding: 0rem;
        }
        
        .affiliate-notice {
            background: rgba(255, 153, 0, 0.1);
            border: 1px solid rgba(255, 153, 0, 0.3);
            color: #FF9900;
            padding: 12px 16px;
            border-radius: 8px;
            margin: 20px 0 30px;
            font-size: 14px;
            max-width: 100%;
        }
        
        .affiliate-notice i {
            margin-right: 8px;
        }
        
        /* Tabs styling */
        .deals-tabs {
            margin: 24px 0 0;
            border-bottom: 1px solid rgba(148, 163, 184, 0.4);
        }
        
        .tabs-nav {
            display: flex;
            background: rgba(15, 23, 42, 0.8);
            border-radius: 12px 12px 0 0;
            border: 1px solid rgba(148, 163, 184, 0.4);
            border-bottom: none;
            overflow: hidden;
        }
        
        .tab-button {
            flex: 1;
            padding: 16px;
            background: transparent;
            border: none;
            color: #94a3b8;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .tab-button:hover {
            color: #e5e7eb;
            background: rgba(56, 189, 248, 0.05);
        }
        
        .tab-button.active {
            color: #38bdf8;
            background: #020617;
        }
        
        .tab-button.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: #38bdf8;
        }
        
        .tab-content {
            display: none;
            padding: 30px 0;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* Mobile menu button styling - matching your mockup */
        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 20px;
            height: 12px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 100;
        }
        
        .mobile-menu-toggle span {
            display: block;
            width: 100%;
            height: 3px;
            background-color: #e5e7eb;
            border-radius: 2px;
            transition: all 0.3s ease;
        }
        
        .mobile-menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }
        
        .mobile-menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }
        
        .mobile-menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }
        
        /* Mobile menu modal - centered like your mockup */
        .mobile-menu-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .mobile-menu-modal.active {
            display: flex;
            opacity: 1;
        }
        
        .mobile-menu-content {
            background: #0f172a;
            border-radius: 16px;
            width: 90%;
            max-width: 350px;
            max-height: 80vh;
            overflow-y: auto;
            border: 2px solid rgba(56, 189, 248, 0.3);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
            transform: translateY(20px);
            transition: transform 0.3s ease;
        }
        
        .mobile-menu-modal.active .mobile-menu-content {
            transform: translateY(0);
        }
        
        .mobile-menu-header {
            padding: 24px;
            text-align: center;
            border-bottom: 1px solid rgba(148, 163, 184, 0.3);
            background: rgba(15, 23, 42, 0.95);
            border-radius: 16px 16px 0 0;
        }
        
        .mobile-menu-title {
            font-size: 24px;
            font-weight: 700;
            color: #38bdf8;
            margin-bottom: 4px;
        }
        
        .mobile-menu-subtitle {
            font-size: 14px;
            color: #94a3b8;
        }
        
        .mobile-menu-links {
            padding: 20px 0;
        }
        
        .mobile-menu-link {
            display: flex;
            align-items: center;
            padding: 18px 24px;
            color: #e5e7eb;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            border-bottom: 1px solid rgba(148, 163, 184, 0.1);
            transition: all 0.2s;
        }
        
        .mobile-menu-link:last-child {
            border-bottom: none;
        }
        
        .mobile-menu-link:hover {
            background: rgba(56, 189, 248, 0.1);
            color: #38bdf8;
            padding-left: 28px;
        }
        
        .mobile-menu-link.active {
            background: rgba(56, 189, 248, 0.15);
            color: #38bdf8;
            border-left: 4px solid #38bdf8;
        }
        
        .mobile-menu-link i {
            margin-right: 12px;
            width: 20px;
            text-align: center;
            font-size: 18px;
        }
        
        .mobile-menu-footer {
            padding: 20px 24px;
            background: rgba(15, 23, 42, 0.8);
            border-radius: 0 0 16px 16px;
            border-top: 1px solid rgba(148, 163, 184, 0.2);
        }
        
        .mobile-menu-footer-title {
            font-size: 14px;
            color: #94a3b8;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .mobile-menu-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .mobile-menu-action {
            display: flex;
            align-items: center;
            padding: 14px;
            background: rgba(148, 163, 184, 0.1);
            border-radius: 10px;
            color: #e5e7eb;
            text-decoration: none;
            font-size: 15px;
            transition: all 0.2s;
        }
        
        .mobile-menu-action:hover {
            background: rgba(56, 189, 248, 0.2);
            color: #38bdf8;
            transform: translateY(-2px);
        }
        
        .mobile-menu-action i {
            margin-right: 12px;
            font-size: 16px;
        }
        
        .mobile-menu-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid rgba(148, 163, 184, 0.3);
            border-radius: 50%;
            color: #e5e7eb;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            z-index: 10000;
        }
        
        .mobile-menu-close:hover {
            background: rgba(56, 189, 248, 0.2);
            color: #38bdf8;
            border-color: #38bdf8;
            transform: rotate(90deg);
        }
        
        @media (max-width: 768px) {
            .mobile-menu-toggle {
                display: flex;
            }
            
            .yt-header-center {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: #020617;
                padding: 15px;
                box-shadow: 0 5px 10px rgba(0,0,0,0.3);
                display: none;
                z-index: 99;
            }
            
            .yt-header-center.active {
                display: block;
            }
            
            .nav-shell {
                display: none;
            }
            
            .top-actions {
                font-size: 14px;
            }
            
            .brand-title {
                font-size: 16px;
            }
            
            .brand-subtitle {
                font-size: 12px;
            }
        }
        
        /* COMMUNITY DEALS GRID - 5 columns on desktop */
        .community-deals-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
            margin-top: 20px;
        }
        
        @media (max-width: 1400px) {
            .community-deals-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        @media (max-width: 1100px) {
            .community-deals-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .community-deals-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .tabs-nav {
                flex-direction: row;
                overflow-x: auto;
            }
            
            .tab-button {
                min-width: 180px;
                font-size: 14px;
                padding: 12px;
            }
        }
        
        @media (max-width: 480px) {
            .community-deals-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            
            .tab-button {
                min-width: 160px;
            }
        }
        
        /* Discounts grid */
        .discounts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        @media (max-width: 768px) {
            .discounts-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }
        
        @media (max-width: 480px) {
            .discounts-grid {
                grid-template-columns: 1fr;
            }
        }
        
        .discount-card {
            background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.95));
            border-radius: 14px;
            border: 1px solid rgba(148,163,184,0.4);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
        }
        
        .discount-card:hover {
            transform: translateY(-4px);
            border-color: #38bdf8;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }
        
        .discount-card.amazon-card {
            border-left: 5px solid #FF9900;
        }
        
        .discount-media {
            position: relative;
            width: 100%;
            padding-top: 60%;
            overflow: hidden;
        }
        
        .discount-media img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .discount-card:hover .discount-media img {
            transform: scale(1.05);
        }
        
        .discount-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 2;
        }
        
        .discount-badge.amazon {
            background: rgba(255, 153, 0, 0.2);
            color: #FF9900;
            border: 1px solid rgba(255, 153, 0, 0.4);
        }
        
        .discount-content {
            padding: 16px;
            display: flex;
            flex-direction: column;
            height: calc(100% - 60%);
        }
        
        .discount-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            font-size: 12px;
        }
        
        .discount-subreddit {
            background: rgba(148, 163, 184, 0.1);
            padding: 4px 8px;
            border-radius: 12px;
            color: #94a3b8;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 70%;
        }
        
        .discount-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex-grow: 1;
        }
        
        .discount-domain {
            font-size: 12px;
            color: #94a3b8;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .discount-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
            padding-top: 16px;
            border-top: 1px solid rgba(148, 163, 184, 0.2);
        }
        
        .discount-time {
            font-size: 11px;
            color: #94a3b8;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .discount-get-btn {
            background: #38bdf8;
            color: #0f172a;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .discount-get-btn:hover {
            background: #0ea5e9;
            transform: translateY(-2px);
        }
        
        .discount-get-btn.amazon {
            background: #FF9900;
        }
        
        .discount-get-btn.amazon:hover {
            background: #e68a00;
        }
        
        /* Filter buttons */
        .filter-buttons {
            display: flex;
            gap: 8px;
            margin: 16px 0 24px;
            flex-wrap: wrap;
        }
        
        .filter-btn {
            padding: 8px 16px;
            border-radius: 20px;
            border: 1px solid rgba(148, 163, 184, 0.4);
            background: transparent;
            color: #94a3b8;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
        }
        
        .filter-btn:hover, .filter-btn.active {
            border-color: #38bdf8;
            color: #38bdf8;
            background: rgba(56, 189, 248, 0.1);
        }
        
        /* Status indicators */
        .status-row {
            margin: 20px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            color: #94a3b8;
            font-size: 14px;
        }
        
        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(148, 163, 184, 0.3);
            border-top-color: #38bdf8;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Back to top button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: #38bdf8;
            color: #0f172a;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            transition: all 0.3s;
        }
        
        .back-to-top.visible {
            display: flex;
        }
        
        .back-to-top:hover {
            background: #0ea5e9;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        }
        
        /* Counter text */
        #counter {
            text-align: center;
            color: #94a3b8;
            margin: 10px 0 20px;
            font-size: 14px;
        }
        
        /* Mobile optimizations */
        @media (max-width: 768px) {
            .content {
                padding: 0.5rem;
            }
            
            .affiliate-notice {
                margin: 15px 0 20px;
                font-size: 13px;
                padding: 10px 12px;
            }
            
            .discount-media {
                padding-top: 50%;
            }
            
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 18px;
            }
        }
        
        @media (max-width: 480px) {
            .content {
                padding: 0.5rem;
            }
            
            .tabs-nav {
                border-radius: 8px 8px 0 0;
            }
            
            .tab-button {
                min-width: 140px;
                font-size: 13px;
                padding: 10px;
            }
            
            .filter-buttons {
                gap: 6px;
            }
            
            .filter-btn {
                padding: 6px 12px;
                font-size: 13px;
            }
        }
        
        /* Community deals card styles */
        .community-deal-card {
            background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.95));
            border-radius: 14px;
            border: 1px solid rgba(148,163,184,0.4);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .community-deal-card:hover {
            transform: translateY(-4px);
            border-color: #38bdf8;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }
        
        .community-deal-card.amazon-card {
            border-left: 4px solid #FF9900;
        }
        
        .community-deal-media {
            position: relative;
            width: 100%;
            padding-top: 70%;
            overflow: hidden;
        }
        
        .community-deal-media img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .community-deal-card:hover .community-deal-media img {
            transform: scale(1.05);
        }
        
        .community-deal-content {
            padding: 16px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .community-deal-title {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 8px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex-grow: 1;
        }
        
        .community-deal-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            font-size: 11px;
            color: #94a3b8;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .community-deal-subreddit {
            background: rgba(148, 163, 184, 0.1);
            padding: 3px 6px;
            border-radius: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 60%;
        }
        
        .community-deal-actions {
            display: flex;
            justify-content: space-around;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(148, 163, 184, 0.2);
        }
        
        .community-action-btn {
            background: transparent;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 6px 10px;
            border-radius: 6px;
            transition: all 0.2s;
        }
        
        .community-action-btn:hover {
            background: rgba(56, 189, 248, 0.1);
            color: #38bdf8;
        }
        
        .community-action-btn.liked {
            color: #ef4444;
        }
        
        .community-action-btn.liked:hover {
            color: #dc2626;
        }
        
        .community-action-count {
            font-weight: 600;
            min-width: 20px;
            text-align: center;
        }
        
        .community-deal-time {
            font-size: 11px;
            color: #94a3b8;
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        /* Comment and Share Modal styles */
        .comment-modal, .share-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            align-items: center;
            justify-content: center;
        }
        
        .comment-modal.active, .share-modal.active {
            display: flex;
        }
        
        .comment-modal-content, .share-modal-content {
            background: #0f172a;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(148, 163, 184, 0.4);
        }
        
        .comment-modal-header {
            padding: 20px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.4);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .comment-close-btn {
            background: none;
            border: none;
            color: #94a3b8;
            font-size: 24px;
            cursor: pointer;
            line-height: 1;
        }
        
        .comment-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }
        
        .comments-list {
            max-height: 300px;
            overflow-y: auto;
        }
        
        .comment-modal-footer {
            padding: 20px;
            border-top: 1px solid rgba(148, 163, 184, 0.4);
        }
        
        .comment-form {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .comment-input {
            background: rgba(148, 163, 184, 0.1);
            border: 1px solid rgba(148, 163, 184, 0.4);
            border-radius: 8px;
            color: #e5e7eb;
            padding: 12px;
            font-size: 14px;
            min-height: 80px;
            resize: vertical;
        }
        
        .comment-submit-btn {
            background: #38bdf8;
            color: #0f172a;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
        }
        
        .share-options {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            padding: 20px;
        }
        
        .share-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            border-radius: 8px;
            background: rgba(148, 163, 184, 0.1);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .share-option:hover {
            background: rgba(56, 189, 248, 0.2);
            transform: translateY(-2px);
        }
        
        .share-option i {
            font-size: 24px;
            margin-bottom: 10px;
        }
        
        .share-option.facebook i { color: #4267B2; }
        .share-option.twitter i { color: #1DA1F2; }
        .share-option.reddit i { color: #FF4500; }
        .share-option.whatsapp i { color: #25D366; }
        .share-option.email i { color: #EA4335; }
        .share-option.link i { color: #38bdf8; }
        
        /* Toast notification */
        .toast {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            z-index: 10000;
            font-size: 14px;
            white-space: nowrap;
        }

    /* COMPACT LAYOUT SETTINGS */
    :root { width: 100%; --yt-bg: #0f172a; --card-bg: #1e293b; --text: #f8fafc; --dim: #94a3b8; }
    
    .yt-layout { width: 100%; display: grid;  grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--yt-bg); color: var(--text); font-family: sans-serif; }

    /* SIDEBAR - Restored Original links */
    .yt-sidebar { padding: 20px 10px; border-right: 1px solid #1e293b; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
    .yt-sidebar a { display: block; padding: 12px 15px; border-radius: 8px; color: var(--dim); text-decoration: none; margin-bottom: 4px; font-size: 0.9rem; }
    .yt-sidebar a:hover, .yt-sidebar a.active { background: var(--card-bg); color: #38bdf8; }

    /* MAIN CONTENT - Forced Compact */
    .yt-main { padding: 20px; max-width: 1900px; margin: 0 auto; width: 100%; box-sizing: border-box; }

    /* SHORTS - EXACTLY 5 PER ROW */
    .shorts-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 40px; }
    
    /* RECOMMENDED - EXACTLY 3 PER ROW */
    .video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

    /* CARD STYLES */
    .v-card { cursor: pointer; transition: 0.2s; width: 100%; }
    .v-card:hover { transform: translateY(-3px); }
    .v-thumb { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; border: 1px solid #334155; }
    .v-card.is-short .v-thumb { aspect-ratio: 9/16; }
    .v-thumb img { width: 100%; height: 100%; object-fit: cover; }
    
    .v-info { padding: 10px 2px; }
    .v-title { font-weight: 600; font-size: 0.9rem; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .v-channel { font-size: 0.8rem; color: var(--dim); }

    .sentinel { height: 80px; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 0.85rem; margin-top: 20px; }

