/* ============================================
   LinkGids.nl — Netflix-style CSS
   CSS Custom Properties for Dark/Light mode
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 50px;
    background: var(--bg-nav);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: background var(--transition-speed);
}

.light-mode nav {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

nav .logo {
    color: #e50914;
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex-shrink: 0;
}

nav .nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

nav .nav-links a {
    color: var(--text-white);
    font-size: 14px;
    transition: color var(--transition-speed);
}

nav .nav-links a:hover {
    color: var(--text-secondary);
}

nav .nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

nav .nav-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 0 12px;
    transition: border-color var(--transition-speed);
}

.light-mode nav .nav-search {
    background: var(--bg-input);
    border-color: var(--border-subtle);
}

nav .nav-search:focus-within {
    border-color: #e50914;
}

nav .nav-search input {
    background: transparent;
    border: none;
    color: var(--text-white);
    padding: 8px;
    font-size: 14px;
    width: 200px;
    outline: none;
}

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

nav .nav-search button {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

/* Theme & NSFW toggles */
.nav-toggle-btn {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-speed), color var(--transition-speed);
}

.nav-toggle-btn:hover {
    background: rgba(255,255,255,0.1);
}

.light-mode .nav-toggle-btn:hover {
    background: rgba(0,0,0,0.05);
}

.theme-toggle .icon-sun {
    display: none;
}

.light-mode .theme-toggle .icon-moon {
    display: none;
}

.light-mode .theme-toggle .icon-sun {
    display: block;
}

.nsfw-toggle {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.nsfw-toggle.active {
    border-color: #e50914;
    color: #e50914;
    background: rgba(229, 9, 20, 0.1);
}

.nsfw-label {
    pointer-events: none;
}

nav .nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 4px;
}

nav .nav-mobile-search {
    display: none;
}

nav .nav-mobile-search form {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

nav .nav-mobile-search input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: var(--text-white);
    font-size: 14px;
    outline: none;
}

nav .nav-mobile-search input::placeholder {
    color: var(--text-muted);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    height: 85vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 0 50px 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    padding-bottom: 40px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 24px;
    color: #ccc;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 10px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: #e50914;
    color: white;
}

.btn-primary:hover {
    background-color: #f40612;
    transform: translateY(-1px);
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    padding: 80px 50px 30px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.light-mode .page-header {
    background: linear-gradient(to bottom, var(--bg-secondary), transparent);
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-speed);
}

.breadcrumb a:hover {
    color: #e50914;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ============================================
   Active Filters (search)
   ============================================ */
.active-filters {
    padding: 0 50px 10px;
}

.active-filters .container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--bg-input);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-primary);
    transition: all var(--transition-speed);
}

.filter-chip:hover {
    background: #e50914;
    color: #fff;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 30px 50px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.section h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
}

.mt-3 {
    margin-top: 48px;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green { background: #1b5e20; color: #a5d6a7; }
.badge-yellow { background: #e65100; color: #ffcc80; }
.badge-red { background: #b71c1c; color: #ef9a9a; }

/* ============================================
   Card Thumbnail Overlays
   ============================================ */
.card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    /* Fallback for browsers without aspect-ratio support */
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    background: var(--bg-input);
}

.card-thumb > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-thumb img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-object-fit: cover;
}

.card-thumb .overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    opacity: 0.9;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.card-thumb:hover .overlay-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

/* ============================================
   Card (used in grids and rows)
   ============================================ */
.card {
    background-color: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    display: block;
    color: inherit;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px var(--card-shadow);
    z-index: 10;
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e50914;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 3;
}

.card-body {
    padding: 14px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.card-cat {
    color: var(--text-secondary);
}

.card-views {
    color: var(--text-muted);
    margin-left: auto;
}

.card-date {
    color: var(--text-muted);
    white-space: nowrap;
}

.card-date::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.card-source {
    display: block;
    margin-top: 6px;
}

/* ============================================
   Content Grid (paginated view)
   ============================================ */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* ============================================
   Feed Container
   ============================================ */
.feed-container {
    padding-top: 80px;
    padding-bottom: 40px;
}

/* ============================================
   Feed Loading / Sentinel / End
   ============================================ */
.feed-sentinel {
    width: 100%;
    height: 1px;
}

.feed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 0;
    color: var(--text-tertiary);
    font-size: 14px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-subtle);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.feed-end {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   Horizontal Scrollable Rows (Netflix-style)
   ============================================ */
.content-row {
    padding: 10px 50px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.content-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.content-row-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.see-all {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-speed);
}

.see-all:hover {
    color: #e50914;
}

.content-row-scroll {
    position: relative;
    overflow: hidden;
}

.content-row-items {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
    scrollbar-width: none;
}

.content-row-items::-webkit-scrollbar {
    display: none;
}

.content-row-items .card {
    flex: 0 0 220px;
    scroll-snap-align: start;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.7);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed), background var(--transition-speed);
}

.content-row-scroll:hover .scroll-arrow {
    opacity: 1;
}

.scroll-arrow:hover {
    background: rgba(0,0,0,0.9);
}

.scroll-left {
    left: -10px;
}

.scroll-right {
    right: -10px;
}

/* ============================================
   Item Detail
   ============================================ */
.item-detail {
    padding-top: 80px;
}

.item-container {
    max-width: 1000px;
    margin: 0 auto;
}

.item-media {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item-embed {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
    background: #000;
    overflow: hidden;
}

.item-image {
    width: 100%;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 8px;
}

.item-external {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-input);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.item-external-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.item-external-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
    opacity: 0.9;
}

.item-external-overlay-sm {
    width: 48px;
    height: 48px;
}

/* Clickable thumbnail hover */
.item-external-link {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.item-external-link .item-external::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.2s ease;
    z-index: 3;
    border-radius: 8px;
}

.item-external-link:hover .item-external::after {
    background: rgba(0,0,0,0.15);
}

#item-fallback {
    flex-direction: column;
}

.item-external-btn {
    display: block;
    margin-top: 24px;
    width: fit-content;
    white-space: nowrap;
}

.external-cta {
    text-align: center;
    color: var(--text-tertiary);
}

.external-cta svg {
    margin: 0 auto 12px;
    color: var(--text-muted);
}

.external-cta p {
    margin-bottom: 16px;
}

.item-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.item-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    color: var(--text-tertiary);
    font-size: 14px;
}

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

.meta-item a {
    color: var(--text-secondary);
}

.item-meta .meta-item:last-child {
    margin-left: auto;
}

.meta-item a:hover {
    color: #e50914;
}

.meta-date {
    color: var(--text-muted);
}

.meta-date::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-input);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition-speed);
}

.tag:hover {
    background: #e50914;
    color: #fff;
}

/* Tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

/* ============================================
   Related Section
   ============================================ */
.related-section {
    padding: 40px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.related-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ============================================
   Video Grid (legacy — challenge detail)
   ============================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--card-shadow);
}

.video-embed-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-lazy-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-speed);
}

.video-thumbnail-placeholder {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.play-button {
    width: 64px;
    height: 64px;
    background: rgba(229, 9, 20, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed), background var(--transition-speed);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.video-lazy-placeholder:hover .play-button {
    transform: scale(1.1);
    background: rgba(229, 9, 20, 1);
}

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

.video-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ============================================
   Platform Badges
   ============================================ */
.platform-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.platform-youtube { background: #cc0000; color: #fff; }
.platform-tiktok { background: #010101; color: #fe2c55; border: 1px solid #fe2c55; }
.platform-facebook { background: #1877f2; color: #fff; }
.platform-instagram { background: #e4405f; color: #fff; }
.platform-vimeo { background: #1ab7ea; color: #fff; }
.platform-dumpert { background: #ff6600; color: #fff; }
.platform-video { background: #444; color: #ccc; }

.views {
    color: var(--text-muted);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

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

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination li a {
    background: var(--bg-input);
    color: var(--text-secondary);
}

.pagination li a:hover {
    background: #444;
    color: #fff;
}

.pagination li .pagination-current {
    background: #e50914;
    color: #fff;
    font-weight: 600;
}

.pagination li .disabled {
    color: var(--text-dark);
    cursor: default;
}

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

.pagination-prev,
.pagination-next {
    font-size: 13px;
}

/* ============================================
   Search
   ============================================ */
.search-form {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-white);
    font-size: 16px;
    outline: none;
    transition: border-color var(--transition-speed);
}

.light-mode .search-input {
    color: var(--text-primary);
}

.search-input:focus {
    border-color: #e50914;
}

.search-count {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

/* ============================================
   NSFW Toggle — hide NSFW items when toggle is OFF
   ============================================ */
.nsfw-hidden .content-row[data-nsfw="true"] {
    display: none;
}

.nsfw-hidden .card[data-nsfw="true"] {
    display: none;
}

.nsfw-hidden .nsfw-item {
    display: none;
}

/* ============================================
   Footer
   ============================================ */
footer {
    border-top: 1px solid var(--border-footer);
    padding: 50px;
    margin-top: 40px;
    transition: border-color var(--transition-speed);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-white);
}

.footer-section p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.footer-section ul a:hover {
    color: #e50914;
}

.footer-bottom {
    text-align: center;
    color: var(--text-dark);
    font-size: 13px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    nav {
        padding: 12px 20px;
    }

    nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
    }

    .light-mode nav .nav-links {
        background: var(--bg-primary);
    }

    nav .nav-links.open {
        display: flex;
    }

    nav .nav-mobile-search {
        display: block;
    }

    nav .nav-search {
        display: none;
    }

    nav .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 0 20px 60px;
        height: 70vh;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .feed-container {
        padding-top: 70px;
    }

    .page-header {
        padding: 70px 20px 20px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .section {
        padding: 20px;
    }

    .section h2 {
        font-size: 22px;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .content-row {
        padding: 10px 20px 20px;
    }

    .scroll-arrow {
        display: none;
    }

    .content-row-items .card {
        flex: 0 0 180px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    footer {
        padding: 30px 20px;
    }

    .search-form {
        flex-direction: column;
    }

    .active-filters {
        padding: 0 20px 10px;
    }

    .related-section {
        padding: 30px 20px;
    }

    .item-detail {
        padding-top: 70px;
    }

    .meta-category {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-body {
        padding: 10px;
    }

    .content-row-items .card {
        flex: 0 0 150px;
    }

    .item-info h1 {
        font-size: 24px;
    }

    nav.breadcrumb {
        left: 0;
        width: 100%;
    }

    .dumpert-player-container {
        max-height: 50vh;
    }
}

/* ============================================
   Dumpert HLS Player
   ============================================ */
.dumpert-player-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 70vh;
    cursor: pointer;
}

.dumpert-player-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.dumpert-poster {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    z-index: 2;
    transition: opacity 0.3s;
}

.dumpert-poster.hidden {
    opacity: 0;
    pointer-events: none;
}

.dumpert-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

.dumpert-play-overlay:hover {
    background: rgba(0, 0, 0, 0.35);
}

.dumpert-play-overlay.hidden {
    display: none;
}

.dumpert-play-btn {
    width: 72px;
    height: 72px;
    background: rgba(255, 107, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
}

.dumpert-play-overlay:hover .dumpert-play-btn {
    transform: scale(1.08);
    background: rgba(255, 107, 0, 1);
}

.dumpert-play-btn svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    margin-left: 4px;
}

.dumpert-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 2rem 1rem 0.75rem;
    opacity: 0;
    transition: opacity 0.25s;
}

.dumpert-player-container:hover .dumpert-controls,
.dumpert-controls.show {
    opacity: 1;
}

.dumpert-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.dumpert-progress-fill {
    height: 100%;
    background: var(--accent-orange, #ff6b00);
    border-radius: 2px;
    width: 0;
    transition: width 0.1s linear;
}

.dumpert-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dumpert-controls-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dumpert-controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dumpert-ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.dumpert-ctrl-btn:hover {
    color: var(--accent-orange, #ff6b00);
}

.dumpert-ctrl-btn svg {
    width: 24px;
    height: 24px;
}

.dumpert-time {
    color: #ccc;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.dumpert-quality-select {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    cursor: pointer;
}

.dumpert-quality-select option {
    background: #222;
    color: #fff;
}
