        
.video-open-loader{position:fixed;inset:0;z-index:1100;background:rgba(0,0,0,.72);backdrop-filter:blur(5px);display:grid;place-items:center;padding:20px}
.video-open-loader[hidden]{display:none}
.video-open-loader-card{min-width:220px;padding:25px 28px;border-radius:18px;background:#131318;border:1px solid rgba(255,255,255,.12);display:flex;flex-direction:column;align-items:center;gap:10px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.video-open-loader-card strong{color:#fff}
.video-open-loader-card small{color:rgba(255,255,255,.65)}
.video-card.is-opening{opacity:.68;transform:scale(.98)}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: #0a0a0a;
            color: #ffffff;
            overflow-x: hidden;
        }

        .premium-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: radial-gradient(circle at 20% 30%, rgba(255, 65, 108, 0.1), #0a0a0a 80%);
        }

        /* Modern Search Bar */
        .search-container {
            max-width: 550px;
            margin: 0 auto;
        }

        .search-box {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 60px;
            padding: 5px 5px 5px 18px;
            transition: all 0.3s;
            align-items: center;
        }

        .search-box:focus-within {
            border-color: #ff416c;
            box-shadow: 0 0 0 3px rgba(255, 65, 108, 0.2);
            background: rgba(255, 255, 255, 0.08);
        }

        .search-icon {
            color: rgba(255, 255, 255, 0.35);
            font-size: 0.85rem;
            margin-right: 4px;
        }

        .search-input {
            background: transparent;
            border: none;
            padding: 12px 10px;
            color: white;
            font-size: 0.9rem;
            width: 100%;
        }

        .search-input:focus {
            outline: none;
        }

        .search-clear {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
            flex-shrink: 0;
            transition: all 0.2s;
        }

        .search-clear:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
        }

        .search-btn {
            background: linear-gradient(90deg, #ff416c, #ff4b2b);
            border: none;
            border-radius: 50px;
            padding: 10px 25px;
            color: white;
            font-weight: 600;
            font-size: 0.85rem;
            white-space: nowrap;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .search-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 20px -6px rgba(255, 65, 108, 0.6);
        }

        .dashboard-search { display:flex; align-items:center; gap:10px; max-width:760px; margin-inline:auto; padding:8px 9px 8px 14px; border-radius:16px; background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.09); }
        .dashboard-search > i { color:rgba(255,255,255,.48); }
        .dashboard-search input { min-width:0; flex:1; color:#fff; background:transparent; border:0; outline:0; }
        .dashboard-search button { min-height:38px; padding:8px 17px; border:0; border-radius:11px; color:#fff; font-weight:700; background:linear-gradient(90deg,#ff416c,#ff4b2b); }
        .dashboard-search-clear { flex:0 0 auto; padding:7px 8px; color:rgba(255,255,255,.7); font-size:.78rem; font-weight:700; text-decoration:none; }
        .dashboard-search-clear:hover { color:#ff416c; }
        .grid-view-btn span { margin-left:5px; font-size:.68rem; }
        .page-current { display:flex; align-items:center; padding:0 12px; color:rgba(255,255,255,.62); font-size:.76rem; }
        .dashboard-footer { display:flex; justify-content:center; gap:22px; padding:28px 16px 34px; border-top:1px solid rgba(255,255,255,.07); }
        .dashboard-footer a { color:rgba(255,255,255,.62); font-size:.78rem; text-decoration:none; }
        .dashboard-footer a:hover { color:#ff416c; }
        html[data-theme="light"] .dashboard-search { background:#fff; border-color:#e6e8ee; }
        html[data-theme="light"] .dashboard-search input { color:#20242c; }
        html[data-theme="light"] .dashboard-search-clear { color:#68707c; }
        html[data-theme="light"] .dashboard-footer a, html[data-theme="light"] .page-current { color:#68707c; }

        /* Category Chips */
        .category-section {
            margin: 30px 0;
        }

        .filter-label {
            font-size: 0.72rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: rgba(255, 255, 255, 0.4);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .active-filters {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.5);
        }

        .filter-pill {
            background: rgba(255, 65, 108, 0.15);
            border: 1px solid rgba(255, 65, 108, 0.35);
            color: #ff8fa3;
            padding: 3px 12px;
            border-radius: 20px;
            font-weight: 500;
        }

        .filter-reset {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: underline;
            font-size: 0.75rem;
            margin-left: 4px;
        }

        .filter-reset:hover {
            color: #ff416c;
        }

        .category-scroll {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding-bottom: 10px;
            scrollbar-width: thin;
        }

        .category-scroll::-webkit-scrollbar {
            height: 3px;
        }

        .category-scroll::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        .category-scroll::-webkit-scrollbar-thumb {
            background: #ff416c;
            border-radius: 10px;
        }

        .chip {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 40px;
            padding: 8px 20px;
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            white-space: nowrap;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .chip:hover {
            background: rgba(255, 65, 108, 0.15);
            border-color: #ff416c;
            color: #ff416c;
            transform: translateY(-2px);
        }

        .chip.active {
            background: linear-gradient(90deg, #ff416c, #ff4b2b);
            border-color: transparent;
            color: white;
            box-shadow: 0 6px 16px -6px rgba(255, 65, 108, 0.6);
        }

        .chip-count {
            background: rgba(0, 0, 0, 0.4);
            border-radius: 20px;
            padding: 2px 8px;
            font-size: 0.7rem;
            margin-left: 6px;
        }

        .filter-bar {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 12px;
        }

        .filter-bar .category-section {
            flex: 1 1 auto;
            min-width: 0;
        }

        .filter-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 0 0 auto;
        }

        .sort-selector {
            display: flex;
            align-items: center;
            gap: 7px;
            color: rgba(255, 255, 255, .65);
        }

        .sort-select {
            min-height: 38px;
            padding: 7px 28px 7px 10px;
            border: 1px solid rgba(255,255,255,.12);
            border-radius: 10px;
            color: #fff;
            background: #1b1b25;
            font-size: .82rem;
        }

        .sort-dropdown {
            position: relative;
            min-width: 172px;
        }

        .sort-dropdown .sort-select {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 9px 12px;
            cursor: pointer;
            font-weight: 700;
            box-shadow: 0 10px 26px rgba(0,0,0,.18);
            transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
        }

        .sort-dropdown .sort-select:hover,
        .sort-dropdown.is-open .sort-select {
            border-color: rgba(255, 65, 108, .62);
            box-shadow: 0 0 0 3px rgba(255, 65, 108, .12), 0 12px 30px rgba(0,0,0,.22);
        }

        .sort-dropdown .sort-select > i {
            font-size: .68rem;
            color: #ff6685;
            transition: transform .2s ease;
        }

        .sort-dropdown.is-open .sort-select > i { transform: rotate(180deg); }

        .sort-dropdown-menu {
            position: absolute;
            z-index: 25;
            top: calc(100% + 8px);
            right: 0;
            width: 238px;
            padding: 9px;
            border: 1px solid rgba(255,255,255,.13);
            border-radius: 14px;
            background: rgba(22, 22, 31, .98);
            box-shadow: 0 18px 42px rgba(0,0,0,.34);
            backdrop-filter: blur(18px);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-6px) scale(.98);
            transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
        }

        .sort-dropdown.is-open .sort-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .sort-search-wrap {
            position: relative;
            margin-bottom: 7px;
        }

        .sort-search-wrap > i {
            position: absolute;
            left: 11px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255,255,255,.48);
            font-size: .76rem;
            pointer-events: none;
        }

        .sort-search-wrap input {
            width: 100%;
            height: 35px;
            padding: 7px 10px 7px 31px;
            border: 1px solid rgba(255,255,255,.10);
            border-radius: 9px;
            outline: 0;
            color: #fff;
            background: rgba(255,255,255,.06);
            font-size: .78rem;
        }

        .sort-search-wrap input:focus { border-color: rgba(255,65,108,.55); }

        .sort-option {
            display: flex;
            align-items: center;
            width: 100%;
            gap: 9px;
            padding: 9px 10px;
            border: 0;
            border-radius: 9px;
            color: rgba(255,255,255,.82);
            background: transparent;
            text-align: left;
            font-size: .82rem;
            font-weight: 600;
            cursor: pointer;
        }

        .sort-option > i { width: 14px; color: #ff6685; }
        .sort-option:hover, .sort-option.is-selected { color: #fff; background: rgba(255,65,108,.14); }
        .sort-empty { margin: 8px 4px 4px; color: rgba(255,255,255,.55); font-size: .78rem; }

        html[data-theme="light"] .sort-dropdown .sort-select {
            color: #1f2430;
            border-color: #e0e2e8;
            background: linear-gradient(135deg, #fff, #f7f8fb);
            box-shadow: 0 10px 26px rgba(31,36,48,.10);
        }

        html[data-theme="light"] .sort-dropdown-menu {
            border-color: #e2e4ea;
            background: rgba(255,255,255,.98);
            box-shadow: 0 18px 42px rgba(31,36,48,.16);
        }

        html[data-theme="light"] .sort-search-wrap input {
            color: #1f2430;
            border-color: #e0e2e8;
            background: #f7f8fb;
        }

        html[data-theme="light"] .sort-search-wrap > i { color: #7e8795; }
        html[data-theme="light"] .sort-option { color: #4c5563; }
        html[data-theme="light"] .sort-option:hover,
        html[data-theme="light"] .sort-option.is-selected { color: #1f2430; background: rgba(255,65,108,.10); }
        html[data-theme="light"] .sort-empty { color: #7e8795; }

        .grid-view-toggle {
            display: inline-flex;
            padding: 3px;
            border: 1px solid rgba(255,255,255,.12);
            border-radius: 10px;
            background: rgba(255,255,255,.04);
        }

        .grid-view-btn {
            width: 32px;
            height: 30px;
            border: 0;
            border-radius: 7px;
            color: rgba(255,255,255,.65);
            background: transparent;
        }

        .grid-view-btn.is-active {
            color: #fff;
            background: linear-gradient(90deg, #ff416c, #ff4b2b);
        }

        /* Video Grid */
        .video-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin: 30px 0;
        }

        .video-grid.single-column {
            grid-template-columns: minmax(0, 1fr) !important;
        }

        .video-card {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
            border-radius: 16px;
            overflow: hidden;
            transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
            text-decoration: none;
            color: white;
            display: block;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .video-card:hover {
            transform: translateY(-6px);
            border-color: rgba(255, 65, 108, 0.5);
            box-shadow: 0 22px 40px -14px rgba(255, 65, 108, 0.35);
        }

        .thumbnail-container {
            position: relative;
            overflow: hidden;
        }

        .thumbnail {
            width: 100%;
            aspect-ratio: 16/9;
            object-fit: cover;
            transition: transform 0.4s;
            display: block;
            /* High-quality rendering — thumbnails stay sharp, not dimmed/blurred */
            image-rendering: auto;
            backface-visibility: hidden;
            transform: translateZ(0);
            will-change: transform;
        }

        /* No scrim over the thumbnail — the image stays fully clear. Each badge
           carries its own background instead, so it is still readable on top of
           a bright frame. */
        .video-card:hover .thumbnail {
            transform: scale(1.06);
        }

        .thumb-badge {
            position: absolute;
            z-index: 2;
            padding: 4px 9px;
            border-radius: 8px;
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.2px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        /* The image stays entirely clear. Source, quality and sharing live in
           one compact row below it, where they remain easy to read and tap. */
        .card-tools {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.07);
        }

        .video-source-meta {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
            min-width: 0;
        }

        .source-pill,
        .quality-pill {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 7px;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,.12);
            background: rgba(255,255,255,.045);
            color: rgba(255,255,255,.72);
            font-size: .63rem;
            font-weight: 700;
            line-height: 1.1;
            white-space: nowrap;
        }

        .source-pill.is-diskwala { color: #7de7bb; border-color: rgba(34,197,94,.28); background: rgba(34,197,94,.09); }
        .source-pill.is-terabox { color: #9fc4ff; border-color: rgba(96,165,250,.28); background: rgba(96,165,250,.09); }
        .quality-pill { color: #ffb1c1; border-color: rgba(255,65,108,.28); background: rgba(255,65,108,.09); }

        .video-share-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 13px;
            border: 1px solid rgba(255, 65, 108, 0.32);
            border-radius: 999px;
            background: rgba(255, 65, 108, 0.10);
            color: #ff9caf;
            font-size: 0.72rem;
            font-weight: 700;
            line-height: 1;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        }

        .video-share-btn:hover,
        .video-share-btn:focus-visible {
            background: #ff416c;
            border-color: #ff416c;
            color: #fff;
        }

        html[data-theme="light"] .card-tools {
            border-top-color: rgba(0, 0, 0, 0.08);
        }

        html[data-theme="light"] .source-pill,
        html[data-theme="light"] .quality-pill {
            border-color: rgba(32, 38, 50, .14);
        }

        html[data-theme="light"] .video-share-btn {
            color: #ad1f47;
            border-color: rgba(173, 31, 71, 0.22);
            background: rgba(255, 65, 108, 0.08);
        }

        .duration {
            bottom: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.72);
            color: #fff;
        }

        .quality {
            top: 10px;
            right: 10px;
            background: linear-gradient(90deg, #ff416c, #ff4b2b);
            color: #fff;
            box-shadow: 0 4px 12px -4px rgba(255, 65, 108, 0.7);
        }

        .views {
            bottom: 10px;
            left: 10px;
            background: rgba(0, 0, 0, 0.72);
            color: #fff;
        }

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

        .video-category-label {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            max-width: 100%;
            margin-bottom: 8px;
            padding: 4px 8px;
            overflow: hidden;
            border: 1px solid rgba(255,65,108,.22);
            border-radius: 999px;
            color: #ff9caf;
            background: rgba(255,65,108,.09);
            font-size: .64rem;
            font-weight: 700;
            line-height: 1.1;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .video-category-label i { flex: 0 0 auto; font-size: .58rem; }

        .video-title {
            font-size: 0.92rem;
            font-weight: 600;
            margin-bottom: 8px;
            line-height: 1.35;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.3s ease;
        }

        .video-card:hover .video-title {
            color: #ff8fa3;
        }

        .video-stats {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.55);
        }

        .video-stats span {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .video-stats i {
            color: rgba(255, 65, 108, 0.75);
        }

        html[data-theme="light"] .video-category-label {
            color: #ad1f47;
            border-color: rgba(173,31,71,.18);
            background: rgba(255,65,108,.08);
        }

        /* Trending Sidebar */
        .trending-card {
            overflow: hidden;
            background: linear-gradient(160deg, rgba(255, 65, 108, .12), rgba(20, 20, 31, .94) 28%, rgba(15, 15, 22, .98));
            border-radius: 22px;
            padding: 18px;
            border: 1px solid rgba(255, 109, 139, .20);
            box-shadow: 0 18px 42px rgba(0,0,0,.22);
            position: sticky;
            top: 90px;
            max-height: calc(100vh - 110px);
            display: flex;
            flex-direction: column;
        }

        .trending-header {
            justify-content: space-between;
            margin-bottom: 12px;
            padding-bottom: 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .trending-heading { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1rem; font-weight: 800; }
        .trending-heading > div { display: flex; flex-direction: column; gap: 2px; }
        .trending-heading small { display: block; margin-top: 2px; color: rgba(255,255,255,.52); font-size: .66rem; font-weight: 500; }
        .trending-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #ff416c, #ff4b2b); box-shadow: 0 7px 15px rgba(255,65,108,.3); }
        .trending-live { padding: 4px 7px; border-radius: 30px; color: #ff9eb0; background: rgba(255,65,108,.12); font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
        .trending-live i { font-size: .42rem; margin-right: 3px; }

        .trending-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
            overflow-y: auto;
            padding-right: 4px;
        }

        .trending-list::-webkit-scrollbar {
            width: 6px;
        }

        .trending-list::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 10px;
        }

        .trending-list::-webkit-scrollbar-track {
            background: transparent;
        }

        .trending-item {
            display: flex;
            align-items: center;
            gap: 9px;
            padding: 8px 6px;
            border-radius: 12px;
            text-decoration: none;
            color: white;
            transition: all 0.3s;
        }

        .trending-item:hover {
            transform: translateX(3px);
            background: rgba(255,255,255,.06);
        }

        .trending-rank {
            display: grid;
            width: 25px;
            font-size: .74rem;
            font-weight: 800;
            color: #ff416c;
            text-align: center;
            min-width: 25px;
        }

        .trending-thumb-wrap {
            position: relative;
            display: grid;
            width: 74px;
            height: 48px;
            flex-shrink: 0;
            place-items: center;
            overflow: hidden;
            border-radius: 10px;
            background: linear-gradient(135deg, #25253a, #11111d);
        }

        .trending-thumb {
            width: 100%;
            height: 100%;
            border-radius: 10px;
            object-fit: cover;
        }

        .trending-play { position: absolute; color: #fff; font-size: .7rem; text-shadow: 0 1px 5px #000; }

        .trending-info {
            flex: 1;
            min-width: 0;
        }

        .trending-title {
            font-size: .76rem;
            font-weight: 600;
            margin-bottom: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .trending-meta {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: .64rem;
            color: rgba(255, 255, 255, 0.5);
        }

        .trending-meta i { color: #ff6685; }
        .trending-hot { padding: 2px 5px; border-radius: 5px; color: #ff9caf; background: rgba(255,65,108,.14); font-size: .58rem; font-weight: 800; text-transform: uppercase; }
        .trending-arrow { color: rgba(255,255,255,.3); font-size: .62rem; transition: transform .2s ease, color .2s ease; }
        .trending-item:hover .trending-arrow { color: #ff6685; transform: translateX(2px); }

        html[data-theme="light"] .trending-card {
            background: linear-gradient(160deg, #fff4f6, #fff 30%, #fafbfe);
            border-color: #ece1e5;
            box-shadow: 0 18px 42px rgba(31,36,48,.10);
        }
        html[data-theme="light"] .trending-heading { color: #1f2430; }
        html[data-theme="light"] .trending-heading small,
        html[data-theme="light"] .trending-meta { color: #7e8795; }
        html[data-theme="light"] .trending-header { border-color: #eceef2; }
        html[data-theme="light"] .trending-item:hover { background: #fff0f4; }
        html[data-theme="light"] .trending-thumb-wrap { background: linear-gradient(135deg, #eceef5, #d9dde9); }
        html[data-theme="light"] .trending-title { color: #252a36; }
        html[data-theme="light"] .trending-arrow { color: #aab0ba; }

        /* Pagination - Optimized for large datasets */
        .pagination-wrapper {
            display: flex;
            justify-content: center;
            margin: 40px 0 20px;
        }

        .pagination {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .page-link {
            min-width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            color: white;
            text-decoration: none;
            font-weight: 500;
            padding: 0 12px;
            transition: all 0.3s;
        }

        .page-link:hover {
            background: rgba(255, 65, 108, 0.2);
            border-color: #ff416c;
        }

        .page-link.active {
            background: linear-gradient(90deg, #ff416c, #ff4b2b);
            border-color: transparent;
        }

        .page-dots {
            min-width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.4);
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 20px;
            border: 1px dashed rgba(255, 255, 255, 0.1);
        }

        .empty-icon {
            font-size: 4rem;
            color: rgba(255, 255, 255, 0.15);
            margin-bottom: 20px;
        }

        /* Responsive */
        @media (min-width: 768px) {
            .video-grid {
                gap: 25px;
            }
        }

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

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

        @media (max-width: 480px) {
            .app-header .header-actions > .btn-login,
            .app-header .header-actions > .btn-signup { display:none !important; }
            .container.py-4 { padding-top:16px !important; }
            .display-6 { font-size:1.55rem; }
            .dashboard-search { position:sticky; top:64px; z-index:20; border-radius:14px; }
            .dashboard-search button { padding-inline:13px; }
            .filter-bar {
                align-items: stretch;
                flex-direction: column;
            }

            .filter-actions {
                justify-content: space-between;
            }

            .sort-selector {
                flex: 1 1 auto;
            }

            .sort-select {
                flex: 1 1 auto;
            }

            .sort-dropdown { flex: 1 1 auto; }
            .sort-dropdown-menu { left: 0; right: auto; width: 100%; }

            .video-grid {
                grid-template-columns:repeat(2,minmax(0,1fr));
                gap:10px;
            }

            .video-grid.single-column { grid-template-columns:1fr !important; }
            .grid-view-btn { width:auto; min-width:58px; padding-inline:8px; }
            .pagination { justify-content:center; }
            .page-link { min-width:auto; padding-inline:12px; }

            .video-title {
                font-size: 0.75rem;
            }

            .video-category-label {
                margin-bottom: 6px;
                padding: 3px 7px;
                font-size: .55rem;
            }

            .video-stats {
                font-size: 0.55rem;
                gap: 8px;
            }

            .card-tools {
                gap: 5px;
                margin-top: 8px;
                padding-top: 8px;
            }

            .video-source-meta { gap: 4px; }

            .source-pill,
            .quality-pill {
                padding: 3px 5px;
                font-size: .56rem;
            }

            .video-share-btn {
                gap: 4px;
                padding: 5px 7px;
                font-size: .61rem;
            }

            .chip {
                padding: 6px 14px;
                font-size: 0.75rem;
            }

            .trending-thumb {
                width: 55px;
                height: 40px;
            }

            .trending-title {
                font-size: 0.7rem;
            }
        }

/* Daily upload notice and the compact state shown after it is opened. */
.today-video-notice {
    position: fixed;
    z-index: 1060;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(18px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 11px;
    max-width: min(370px, calc(100vw - 32px));
    padding: 9px 13px 9px 10px;
    color: #fff;
    background: linear-gradient(135deg, #ff3f62, #ff633c);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 17px;
    box-shadow: 0 14px 34px rgba(255, 54, 86, .36), inset 0 1px 0 rgba(255, 255, 255, .22);
    text-align: left;
    cursor: pointer;
    animation: todayNoticeIn .28s ease-out;
}

.today-video-notice[hidden] { display: none !important; }
.today-video-notice-icon {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 auto;
    background: rgba(0, 0, 0, .16);
    border-radius: 10px;
}
.today-video-notice-icon b {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    background: #fff;
    border: 2px solid #ff4660;
    border-radius: 50%;
    animation: todayNoticePulse 1.8s infinite;
}
.today-video-notice-copy { min-width: 0; flex: 1 1 auto; }
.today-video-notice-copy strong,
.today-video-notice-copy small,
.today-video-notice-copy em { display: block; line-height: 1.2; }
.today-video-notice-copy small { margin-bottom: 2px; color: rgba(255,255,255,.76); font-size: .56rem; font-weight: 800; letter-spacing: .11em; }
.today-video-notice-copy strong { overflow: hidden; font-size: .88rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.today-video-notice-copy em { margin-top: 3px; color: rgba(255,255,255,.88); font-size: .68rem; font-style: normal; }
.today-video-notice-arrow { color: rgba(255,255,255,.82); font-size: .75rem; }

.today-feed-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    min-height: 112px;
    padding: 18px 20px;
    color: #fff;
    background:
        radial-gradient(circle at 88% -26%, rgba(255, 122, 149, .48), transparent 42%),
        linear-gradient(112deg, #401323 0%, #1d1724 54%, #17151e 100%);
    border: 1px solid rgba(255, 97, 125, .32);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}
.today-feed-card::after {
    position: absolute;
    top: -48px;
    right: 125px;
    width: 150px;
    height: 150px;
    content: '';
    background: rgba(255, 68, 101, .13);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
}
.today-feed-copy { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.today-feed-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    color: #ff89a0;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .1em;
}
.today-feed-copy h2 { margin: 0; color: #fff; font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.today-feed-copy p { margin: 4px 0 0; color: rgba(255,255,255,.66); font-size: .78rem; }
.today-feed-count {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 10px 12px;
    background: rgba(0,0,0,.24);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
}
.today-feed-count strong { color: #fff; font-size: 1.65rem; font-weight: 800; line-height: 1; }
.today-feed-count span { color: rgba(255,255,255,.68); font-size: .62rem; font-weight: 700; line-height: 1.12; text-transform: uppercase; }
.today-feed-all {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 9px 11px;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}
.today-feed-all:hover { color: #fff; background: rgba(255,255,255,.19); transform: translateX(2px); }

html[data-theme="light"] .today-feed-card {
    color: #24212a;
    background: radial-gradient(circle at 88% -26%, #ffd9e1, transparent 42%), linear-gradient(112deg, #fff7f9, #fff 54%, #fff3f6);
    border-color: #f0cbd4;
    box-shadow: 0 14px 28px rgba(94, 31, 50, .10);
}
html[data-theme="light"] .today-feed-copy h2 { color: #2b2630; }
html[data-theme="light"] .today-feed-copy p { color: #6d6570; }
html[data-theme="light"] .today-feed-count { background: rgba(255,255,255,.78); border-color: #f3cbd5; }
html[data-theme="light"] .today-feed-count strong { color: #c92c50; }
html[data-theme="light"] .today-feed-count span { color: #7b6570; }
html[data-theme="light"] .today-feed-all { color: #b32448; background: #fff; border-color: #f1c4d0; }
html[data-theme="light"] .today-feed-all:hover { color: #8d1636; background: #fff3f6; }

@keyframes todayNoticeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes todayNoticePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.38); }
    50% { box-shadow: 0 0 0 5px rgba(255,255,255,0); }
}

@media (max-width: 480px) {
    .today-video-notice { left: 12px; bottom: 14px; max-width: calc(100vw - 24px); }
    .today-feed-card { align-items: stretch; flex-wrap: wrap; gap: 11px; min-height: 0; padding: 15px; }
    .today-feed-copy { flex-basis: 100%; }
    .today-feed-copy h2 { font-size: 1rem; }
    .today-feed-copy p { font-size: .72rem; }
    .today-feed-count { padding: 8px 10px; }
    .today-feed-count strong { font-size: 1.35rem; }
    .today-feed-all { margin-left: auto; }
}
    
