/* ==========================================================================
   Milfzr Modern Tube Theme - White & Pink Nuances Design System
   ========================================================================== */

:root {
    --bg-main: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #fff5f8;
    --bg-pink-soft: #fff1f5;
    --bg-pink-light: #fce7f3;
    
    --primary-pink: #ff2d78;
    --primary-pink-hover: #e02066;
    --primary-pink-dark: #be185d;
    --pink-border: #fecdd3;
    --pink-glow: rgba(255, 45, 120, 0.18);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    --border-color: #f1f5f9;
    --border-darker: #e2e8f0;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-pink: 0 4px 14px 0 rgba(255, 45, 120, 0.25);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-subtle);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================================================================
   Top Header & Branding
   ========================================================================== */

.top-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.brand-logo span.highlight {
    background: linear-gradient(135deg, var(--primary-pink), #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-badge {
    font-size: 11px;
    font-weight: 700;
    background: var(--primary-pink);
    color: #fff;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-pink);
}

/* Search Bar */
.search-form {
    flex: 1;
    max-width: 540px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-darker);
    border-radius: var(--radius-full);
    padding: 10px 48px 10px 20px;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    background: #ffffff;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px var(--pink-glow);
}

.search-btn {
    position: absolute;
    right: 4px;
    background: var(--primary-pink);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.search-btn:hover {
    background: var(--primary-pink-hover);
    transform: scale(1.05);
}

/* Header User Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-sponsor {
    background: #10b981;
    color: #fff;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-sponsor:hover {
    background: #059669;
}

.btn-pink {
    background: var(--primary-pink);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-pink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-pink:hover {
    background: var(--primary-pink-hover);
    color: #fff;
}

/* ==========================================================================
   Navigation Bar (Pink Nuance Underline)
   ========================================================================== */

.main-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-links-wrap {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    gap: 4px;
    padding: 4px 0;
    list-style: none;
    margin: 0;
}

.nav-links-wrap::-webkit-scrollbar {
    display: none;
}

.nav-links-wrap li {
    list-style: none;
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.nav-item,
.nav-links-wrap a {
    display: inline-block;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-item:hover,
.nav-links-wrap a:hover {
    color: var(--primary-pink);
    background: var(--bg-pink-soft);
}

.nav-item.active,
.nav-links-wrap a.active,
.nav-links-wrap li.active > a {
    color: var(--primary-pink);
    background: var(--bg-pink-soft);
    font-weight: 700;
}

.nav-item .badge-live {
    font-size: 9px;
    background: #ef4444;
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
    text-transform: uppercase;
}

.nav-item .badge-cam {
    font-size: 9px;
    background: var(--primary-pink);
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
    text-transform: uppercase;
}

/* Notice Bar */
.notice-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.notice-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 32px;
    text-align: center;
}

.notice-bar-text {
    flex: 1;
}

.notice-close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.notice-close-btn:hover {
    color: var(--primary-pink);
    background: var(--bg-pink-soft);
}

.notice-bar a {
    color: var(--primary-pink);
    font-weight: 600;
    text-decoration: underline;
}

.notice-bar-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notice-card-text {
    flex: 1;
    text-align: center;
}

.notice-card-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
    flex-shrink: 0;
}

.notice-card-close-btn:hover {
    color: var(--primary-pink);
    background: var(--bg-pink-soft);
}

.notice-bar-card a {
    color: var(--primary-pink);
    font-weight: 600;
    text-decoration: underline;
}

.notice-bar-card a:hover {
    color: var(--primary-pink-hover);
}

/* ==========================================================================
   Main Layout & Content Grid
   ========================================================================== */

.page-layout {
    display: flex;
    gap: 24px;
    padding: 24px 0;
}

.page-layout-no-sidebar {
    display: block;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.page-layout-no-sidebar .main-content {
    width: 100%;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Page Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--bg-pink-light);
    padding-bottom: 10px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--primary-pink);
    border-radius: 2px;
}

.sort-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-tab {
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--border-darker);
}

.sort-tab:hover {
    color: var(--primary-pink);
    border-color: var(--pink-border);
}

.sort-tab.active {
    background: var(--primary-pink);
    color: #ffffff;
    border-color: var(--primary-pink);
    box-shadow: var(--shadow-pink);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Video Card Component
   ========================================================================== */

.video-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--pink-border);
    background: var(--bg-card-hover);
}

.video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    overflow: hidden;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumb {
    transform: scale(1.06);
}

.badge-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.78);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

.badge-hd {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary-pink);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.video-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.video-card-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    transition: color 0.15s ease;
}

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

.video-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-likes {
    color: var(--primary-pink);
    font-weight: 600;
}

.category-chip {
    font-size: 11px;
    color: var(--primary-pink);
    background: var(--bg-pink-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* ==========================================================================
   Watch Page & Video Player View
   ========================================================================== */

.video-watch-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.video-player-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
}

.video-player-frame .fluid_video_wrapper {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.watch-headline {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.watch-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.watch-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-darker);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-btn:hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
    background: var(--bg-pink-soft);
}

.action-btn.btn-liked {
    background: var(--primary-pink);
    color: #fff;
    border-color: var(--primary-pink);
    box-shadow: var(--shadow-pink);
}

.watch-details-box {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.details-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.details-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.tag-pill {
    background: #ffffff;
    border: 1px solid var(--border-darker);
    color: var(--text-main);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-pill .tag-count,
.tag-pill small {
    color: var(--primary-pink);
    font-weight: 700;
    margin-left: 2px;
    transition: color 0.15s ease;
}

.tag-pill:hover {
    background: var(--primary-pink);
    color: #ffffff;
    border-color: var(--primary-pink);
}

.tag-pill:hover .tag-count,
.tag-pill:hover small,
.tag-pill:hover span {
    color: #ffffff !important;
}

/* Comments Section */
.comments-container {
    margin-top: 24px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
}

.comments-toggle-header {
    transition: color 0.15s ease;
}

.comments-toggle-header:hover .section-title {
    color: var(--primary-pink);
}

.comment-form {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-darker);
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px var(--pink-glow);
}

.comment-list {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.comment-card {
    padding: 12px 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-pink);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.comment-body {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* ==========================================================================
   Sidebar Widgets & Partner Links
   ========================================================================== */

.widget-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.widget-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1.5px solid var(--bg-pink-light);
    padding-bottom: 8px;
}

.widget-title::before {
    content: '';
    width: 4px;
    height: 14px;
    background: var(--primary-pink);
    border-radius: 2px;
}

.category-menu {
    list-style: none;
    display: grid;
    gap: 2px;
}

.category-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}

.category-menu li a:hover {
    background: var(--bg-pink-soft);
    color: var(--primary-pink);
}

.category-menu li a .count {
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-subtle);
    color: var(--text-muted);
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.category-menu li a:hover .count {
    background: var(--primary-pink);
    color: #fff;
}

/* Partner Links */
.partner-menu {
    list-style: none;
    display: grid;
    gap: 4px;
}

.partner-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}

.partner-menu li a::before {
    content: '›';
    font-size: 16px;
    color: var(--primary-pink);
    line-height: 1;
}

.partner-menu li a:hover {
    color: var(--primary-pink);
    padding-left: 12px;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Advertisement Slots & In-Grid Banners */
.ad-slot-wrapper {
    text-align: center;
    position: relative;
    width: 100%;
}

.ad-slot-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ad-widget-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.ad-slot {
    background: #ffffff;
    border: 1px dashed var(--border-darker);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* In-Grid 3 Banners Container (Sitewide & Related Videos) */
.in-grid-ad-container {
    grid-column: 1 / -1;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin: 4px 0 8px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.in-grid-banners-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.in-grid-banner-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

/* 300x250 Ad Banner Component */
.ad-banner-300x250 {
    width: 100%;
    max-width: 300px;
    height: 250px;
    margin: 0 auto;
    background: #fdfdfd;
    border: 1px dashed var(--pink-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ad-banner-300x250:hover {
    border-color: var(--primary-pink);
    background: var(--bg-pink-soft);
}

.ad-banner-300x250-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
}

.ad-banner-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.ad-banner-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-pink);
    margin-bottom: 4px;
}

.ad-banner-zone {
    font-size: 11.5px;
    color: var(--text-muted);
    font-family: monospace;
    background: var(--bg-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.ad-banner-hint {
    font-size: 11px;
    color: var(--text-light);
}

/* Native Ad Banner Card Component */
.native-ad-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}

.native-ad-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--pink-border);
}

.native-ad-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.native-ad-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #fce7f3 0%, #fed7aa 100%);
    overflow: hidden;
}

.native-ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.native-ad-placeholder-graphic {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.native-ad-graphic-icon {
    font-size: 28px;
}

.native-ad-badge {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary-pink);
    letter-spacing: 1px;
}

.native-ad-pill {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.native-ad-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.native-ad-sponsor {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary-pink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.native-ad-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-main);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.native-ad-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
}

.native-ad-cta {
    font-size: 11.5px;
    font-weight: 700;
    color: #ffffff;
    background: var(--primary-pink);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    transition: background 0.15s ease;
}

.native-ad-card:hover .native-ad-cta {
    background: var(--primary-pink-hover);
}

/* Leaderboard & generic slots */
.ad-banner-leaderboard {
    width: 100%;
    max-width: 900px;
    min-height: 110px;
    margin: 0 auto;
    background: #fafafa;
    border: 1px dashed var(--pink-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    padding: 16px;
}

.ad-leaderboard-title {
    font-weight: 700;
    color: var(--primary-pink);
    font-size: 14px;
    margin-bottom: 2px;
}

.ad-leaderboard-meta {
    color: var(--text-light);
    font-size: 11.5px;
}

.ad-banner-generic {
    padding: 12px;
    text-align: center;
    background: #fafafa;
    border: 1px dashed var(--pink-border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 12px;
}

/* Responsive in-grid banners */
@media (max-width: 992px) {
    .in-grid-banners-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 820px) {
    .in-grid-banners-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ad-banner-300x250,
    .native-ad-card {
        max-width: 320px;
    }
}

/* ==========================================================================
   Pagination Component
   ========================================================================== */

.pagination-wrap {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.pagination-wrap .page-link,
.pagination-wrap span.current,
.pagination-wrap a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-darker);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.pagination-wrap a:hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
    background: var(--bg-pink-soft);
}

.pagination-wrap .active,
.pagination-wrap span.current,
.pagination-wrap li.active span {
    background: var(--primary-pink) !important;
    color: #ffffff !important;
    border-color: var(--primary-pink) !important;
    box-shadow: var(--shadow-pink);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding: 30px 0 20px 0;
}

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

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

.footer-nav li a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.footer-nav li a:hover {
    color: var(--primary-pink);
}

.footer-dmca {
    font-size: 12.5px;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.footer-dmca a {
    color: var(--primary-pink);
    font-weight: 600;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 980px) {
    .page-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .search-form {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Smaller mobile typography */
    body {
        font-size: 13.5px;
    }

    .section-title {
        font-size: 16px;
    }

    .watch-title {
        font-size: 18px;
        line-height: 1.35;
    }

    .video-card-title {
        font-size: 12.5px;
        line-height: 1.35;
        max-height: 2.7em;
    }

    .video-card-body {
        padding: 8px 10px;
    }

    .video-meta-row {
        margin-top: 6px;
        font-size: 11px;
    }

    .meta-item {
        font-size: 11px;
    }

    .category-chip {
        font-size: 10px;
        padding: 2px 6px;
    }

    .badge-hd, .badge-duration {
        font-size: 10px;
        padding: 2px 5px;
    }

    .sort-tab {
        padding: 5px 10px;
        font-size: 12px;
    }

    .nav-item {
        padding: 9px 12px;
        font-size: 12px;
    }

    .notice-bar {
        font-size: 11.5px;
        padding: 6px 0;
    }

    .widget-title {
        font-size: 14px;
        padding-bottom: 6px;
        margin-bottom: 10px;
    }

    .tag-pill {
        font-size: 11px;
        padding: 3px 8px;
    }

    .category-menu li a {
        font-size: 12.5px;
        padding: 6px 8px;
    }

    .partner-menu li a {
        font-size: 12.5px;
        padding: 6px 8px;
    }

    /* Compact Mobile Pagination */
    .pagination-wrap {
        margin-top: 20px;
        gap: 3px;
        flex-wrap: wrap;
    }

    .pagination-wrap .page-link,
    .pagination-wrap span.current,
    .pagination-wrap a {
        min-width: 30px;
        height: 32px;
        padding: 0 7px;
        font-size: 12px;
        border-radius: 6px;
    }

    .page-num-hidden-mobile {
        display: none !important;
    }

    .page-dots {
        min-width: 16px !important;
        padding: 0 2px !important;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-card-title {
        font-size: 11.5px;
        line-height: 1.3;
    }

    .video-card-body {
        padding: 6px 8px;
    }

    .meta-stats {
        gap: 6px;
    }

    .meta-item {
        font-size: 10.5px;
    }

    .pagination-wrap {
        gap: 2px;
    }

    .pagination-wrap .page-link,
    .pagination-wrap span.current,
    .pagination-wrap a {
        min-width: 28px;
        height: 30px;
        padding: 0 5px;
        font-size: 11px;
    }
}

/* ==========================================================================
   Slide-in / Floating Slider Ad
   ========================================================================== */

.slide-in-ad-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 320px;
    width: calc(100% - 32px);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: slideInUp 0.35s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-ad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-in-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s ease;
}

.slide-in-close-btn:hover {
    color: var(--primary-pink);
}

.slide-in-ad-body {
    padding: 10px;
}

.slide-in-ad-link {
    display: block;
    text-decoration: none;
    color: #ffffff;
}

.slide-in-ad-promo {
    background: linear-gradient(135deg, var(--primary-pink), #e11d48);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-pink);
    transition: background 0.15s ease, transform 0.15s ease;
}

.slide-in-ad-promo:hover {
    transform: scale(1.02);
}

.slide-in-icon {
    font-size: 24px;
}

.slide-in-promo-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.slide-in-promo-text strong {
    font-size: 13px;
    font-weight: 700;
}

.slide-in-promo-text small {
    font-size: 11px;
    opacity: 0.9;
}
