/**
 * SteamPulse - CS2 & Gaming Videos Hub CSS
 */

/* Container & Layout */
.vids-page-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: hidden;
}

/* Header & Breadcrumbs */
.vids-breadcrumbs {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-lime, #00ff9d);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.vids-breadcrumbs::-webkit-scrollbar {
    display: none;
}

.vids-breadcrumbs span:last-child {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}

.vids-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.vids-main-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.vids-main-title i {
    color: #ef4444;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.4));
}

.vids-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
    max-width: 680px;
    line-height: 1.5;
}

/* Hero Featured Section */
.vids-hero-banner {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0;
}

@media (max-width: 992px) {
    .vids-hero-banner {
        grid-template-columns: 1fr;
    }
}

.vids-hero-media {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
    display: block;
}

.vids-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vids-hero-media:hover img {
    transform: scale(1.04);
}

.vids-hero-play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease;
}

.vids-hero-media:hover .vids-hero-play-badge {
    background: rgba(0, 0, 0, 0.15);
}

.vids-play-circle-lg {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    padding-left: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vids-hero-media:hover .vids-play-circle-lg {
    transform: scale(1.12);
    box-shadow: 0 0 45px rgba(239, 68, 68, 0.85);
}

.vids-hero-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.98) 100%);
}

.vids-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    align-self: flex-start;
}

.vids-hero-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin: 0 0 12px 0;
}

.vids-hero-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vids-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 22px;
}

.vids-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Category Filter Bar */
.vids-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vids-cat-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    max-width: 100%;
}

.vids-cat-tab {
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vids-cat-tab:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.vids-cat-tab.active {
    background: rgba(239, 68, 68, 0.18);
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

.vids-cat-tab .count {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: #94a3b8;
}

/* Search & Sort Controls + View Switcher */
.vids-controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vids-search-wrap {
    position: relative;
    width: 220px;
}

.vids-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 12px;
}

.vids-search-input {
    width: 100%;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 12px 8px 34px;
    font-size: 12px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vids-search-input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.vids-sort-select {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #cbd5e1;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.vids-sort-select:focus {
    border-color: #ef4444;
}

/* View Mode Switcher (Grid / List) */
.vids-view-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}

.vids-view-btn {
    width: 32px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.vids-view-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.vids-view-btn.active {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.45);
}

/* Admin Pending Alert Banner */
.vids-admin-pending-alert {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(180, 83, 9, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.vids-admin-pending-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #fde68a;
}

.vids-pending-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 12px #f59e0b;
    animation: vidsPulse 1.6s infinite ease-in-out;
    flex-shrink: 0;
}

@keyframes vidsPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* ==========================================================================
   VIDEOS CONTAINER & CARDS (GRID & LIST DUAL-MODE)
   ========================================================================== */

/* 1. Grid Mode */
.vids-cards-container.vids-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 30px;
}

.vids-cards-container.vids-view-grid .vids-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.vids-cards-container.vids-view-grid .vids-card:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(239, 68, 68, 0.15);
}

.vids-cards-container.vids-view-grid .vids-card-thumb-wrap {
    position: relative;
    width: 100%;
}

.vids-cards-container.vids-view-grid .vids-card-desc-snippet {
    display: none;
}

.vids-cards-container.vids-view-grid .vids-card-header-row {
    display: none;
}

.vids-cards-container.vids-view-grid .vids-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 2. List Mode */
.vids-cards-container.vids-view-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.vids-cards-container.vids-view-list .vids-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 14px;
    gap: 20px;
}

.vids-cards-container.vids-view-list .vids-card:hover {
    transform: translateX(4px);
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.vids-cards-container.vids-view-list .vids-card-thumb-wrap {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.vids-cards-container.vids-view-list .vids-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 6px 4px 0;
    min-width: 0;
}

.vids-cards-container.vids-view-list .vids-card-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.vids-cards-container.vids-view-list .vids-card-pill-cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 2px 7px;
    border-radius: 4px;
}

.vids-cards-container.vids-view-list .vids-card-date {
    font-size: 11px;
    color: #64748b;
}

.vids-cards-container.vids-view-list .vids-card-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 6px 0;
}

.vids-cards-container.vids-view-list .vids-card-desc-snippet {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Card Thumbnail Elements */
.vids-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
    display: block;
    width: 100%;
    height: 100%;
}

.vids-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.vids-card:hover .vids-card-thumb img {
    transform: scale(1.05);
}

.vids-card-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.vids-card:hover .vids-card-play-overlay {
    opacity: 1;
}

.vids-card-play-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding-left: 2px;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.vids-card-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    z-index: 2;
}

.vids-card-pending-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(245, 158, 11, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #000;
    font-size: 9.5px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
    z-index: 2;
}

.vids-card-pending {
    border-color: rgba(245, 158, 11, 0.4) !important;
    background: rgba(25, 22, 14, 0.7) !important;
}

.vids-card-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vids-card-title:hover {
    color: #38bdf8;
}

.vids-card-author {
    font-size: 11.5px;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vids-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    margin-top: auto;
    gap: 8px;
    flex-wrap: wrap;
}

.vids-card-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vids-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Card Action Buttons */
.vids-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.vids-btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.vids-btn-watch:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
    color: #fff;
}

.vids-btn-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vids-btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.vids-btn-approve {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 6px;
    background: #22c55e;
    border: none;
    color: #000;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
    transition: all 0.2s ease;
}

.vids-btn-approve:hover {
    background: #16a34a;
    color: #fff;
    transform: scale(1.04);
}

.vids-btn-delete {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vids-btn-delete:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* ==========================================================================
   AJAX PAGINATION BAR
   ========================================================================== */
.vids-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 30px 0 50px;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.vids-pagination-info {
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 600;
}

.vids-pagination-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.vids-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vids-page-btn:hover:not(:disabled) {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.vids-page-btn.active {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.vids-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ==========================================================================
   CUSTOM VIDEO PLAYER CORE WITH WATERMARK & CONTROLS
   ========================================================================== */

.custom-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    user-select: none;
    box-sizing: border-box;
}

/* Theater Mode */
.custom-player-wrapper.theater-mode {
    max-width: 100% !important;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.85);
}

/* Fullscreen Mode */
.custom-player-wrapper:fullscreen,
.custom-player-wrapper:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
}

.custom-player-iframe-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.custom-player-iframe-wrap iframe {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1.35) !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    pointer-events: none !important;
}

/* Transparent Click Shield over Iframe to absorb all clicks & prevent YouTube chrome UI bleed */
.custom-player-shield {
    position: absolute;
    inset: 0;
    z-index: 25;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

/* BRANDED CLICKABLE WATERMARK */
.custom-player-watermark {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 40;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
    cursor: pointer;
}

.custom-player-watermark:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: var(--brand-lime, #00ff9d);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.35);
}

.watermark-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff9d;
    box-shadow: 0 0 10px #00ff9d;
    animation: watermarkGlow 2s infinite ease-in-out;
}

@keyframes watermarkGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.watermark-icon {
    color: #ef4444;
    font-size: 13px;
}

.watermark-text {
    font-family: var(--font-heading, inherit);
    text-transform: uppercase;
}

.watermark-ext {
    font-size: 10px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.custom-player-watermark:hover .watermark-ext {
    color: var(--brand-lime, #00ff9d);
}

/* Big Center Play Button Overlay */
.custom-player-big-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    z-index: 30;
    cursor: pointer;
    transition: opacity 0.3s ease, background 0.3s ease;
    pointer-events: auto;
}

.custom-player-big-play.hidden {
    opacity: 0;
    pointer-events: none;
}

.custom-player-big-play:hover {
    background: rgba(0, 0, 0, 0.2);
}

.custom-player-big-play-btn {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    padding-left: 5px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.custom-player-big-play:hover .custom-player-big-play-btn {
    transform: scale(1.15);
    box-shadow: 0 0 55px rgba(239, 68, 68, 0.95);
}

/* Bottom Controls Overlay Bar */
.custom-player-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 35;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
    padding: 20px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.custom-player-controls-bar.autohide {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

/* Scrubber / Progress Bar */
.custom-player-progress-wrap {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    transition: height 0.15s ease;
}

.custom-player-progress-wrap:hover {
    height: 9px;
}

.custom-player-progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    width: 0%;
}

.custom-player-progress-current {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
    border-radius: 3px;
    width: 0%;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

.custom-player-progress-current::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease;
}

.custom-player-progress-wrap:hover .custom-player-progress-current::after {
    transform: translateY(-50%) scale(1);
}

/* Control Buttons Row */
.custom-player-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.custom-player-ctrl-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-player-btn {
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 15px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-player-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.custom-player-btn:active {
    transform: scale(0.92);
}

.custom-player-time {
    font-size: 12px;
    color: #cbd5e1;
    font-family: var(--font-mono, monospace);
    font-weight: 600;
}

/* Volume Slider */
.custom-player-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 70px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.custom-player-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

/* Playback Speed Menu */
.custom-player-speed-btn {
    font-size: 11.5px;
    font-weight: 800;
    font-family: var(--font-mono, monospace);
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    cursor: pointer;
}

.custom-player-speed-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Resolution & HD Quality Menu */
.custom-player-quality-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.custom-player-quality-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    font-family: var(--font-mono, monospace);
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-player-quality-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-player-quality-btn i {
    font-size: 11px;
    color: var(--brand-lime, #00ff9d);
}

.custom-player-quality-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    min-width: 195px;
    background: rgba(11, 17, 29, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 157, 0.15);
    padding: 8px 6px;
    z-index: 50;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-player-quality-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.custom-player-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.custom-player-current-badge {
    font-size: 9.5px;
    font-weight: 900;
    color: #000;
    background: var(--brand-lime, #00ff9d);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.custom-player-quality-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 250px;
    overflow-y: auto;
}

.custom-player-quality-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 7px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

.custom-player-quality-opt:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.custom-player-quality-opt.active {
    background: rgba(0, 255, 157, 0.15);
    color: var(--brand-lime, #00ff9d);
    font-weight: 800;
}

.custom-player-quality-opt .opt-tag {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    letter-spacing: 0.5px;
}

.custom-player-quality-opt.active .opt-tag {
    background: var(--brand-lime, #00ff9d);
    color: #000;
    border: none;
}

/* Watch Page Details Section */
.vids-watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    margin-top: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .vids-watch-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

.vids-watch-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.vids-watch-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    line-height: 1.35;
    margin: 18px 0 10px 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
    max-width: 100%;
}

.vids-watch-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.vids-watch-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: #94a3b8;
    flex-wrap: wrap;
    min-width: 0;
}

.vids-watch-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.vids-action-btn {
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
    min-width: 0;
}

.vids-action-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.vids-action-btn.liked {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.vids-watch-desc-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Sidebar Related Videos */
.vids-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.vids-sidebar-heading {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.vids-sidebar-card {
    display: flex;
    gap: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.vids-sidebar-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(239, 68, 68, 0.35);
    transform: translateX(4px);
}

.vids-sidebar-thumb {
    width: 120px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.vids-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vids-sidebar-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.vids-sidebar-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vids-sidebar-meta {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Modal Windows (Submission & Share) */
.vids-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.vids-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.vids-modal-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 580px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.vids-modal-backdrop.active .vids-modal-card {
    transform: scale(1);
}

.vids-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vids-modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vids-modal-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.vids-modal-close:hover {
    color: #fff;
}

.vids-modal-body {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Standalone Embed Player Mode */
body.vids-embed-body {
    margin: 0;
    padding: 0;
    background: #000;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.vids-embed-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
}

.vids-embed-watermark-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #cbd5e1;
    pointer-events: auto;
}

.vids-embed-backlink {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.vids-embed-backlink:hover {
    color: var(--brand-lime, #00ff9d);
}

/* ==========================================================================
   FULL RESPONSIVENESS & MOBILE ADAPTATIONS
   ========================================================================== */
@media (max-width: 992px) {
    .vids-cards-container.vids-view-list .vids-card-thumb-wrap {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    .vids-page-wrapper {
        padding: 16px 12px 40px;
    }

    .vids-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .vids-main-title {
        font-size: 22px;
    }

    .vids-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .vids-cat-tabs {
        width: 100%;
        padding-bottom: 8px;
    }

    .vids-controls-row {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .vids-search-wrap {
        width: 100%;
    }

    .vids-sort-select {
        flex: 1;
        min-width: 0;
    }

    /* List mode collapses to vertical card on small screens */
    .vids-cards-container.vids-view-list .vids-card {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }

    .vids-cards-container.vids-view-list .vids-card-thumb-wrap {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .vids-cards-container.vids-view-list .vids-card-body {
        padding: 0;
    }

    .vids-card-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .vids-pagination-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 14px;
    }

    .vids-pagination-nav {
        justify-content: center;
    }

    .vids-admin-pending-alert {
        flex-direction: column;
        align-items: flex-start;
    }

    .vids-watch-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 16px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .vids-watch-title {
        font-size: 19px;
        line-height: 1.35;
        margin: 14px 0 8px 0;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .vids-watch-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-bottom: 14px;
        margin-bottom: 14px;
        width: 100%;
    }

    .vids-watch-meta {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 6px 12px;
        font-size: 11.5px;
    }

    .vids-watch-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .vids-action-btn {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
        padding: 9px 10px;
        font-size: 12px;
        min-width: 0;
    }

    .vids-watch-desc-box {
        padding: 14px 16px;
        font-size: 12.5px;
        word-break: break-word;
        overflow-wrap: anywhere;
        margin-bottom: 24px;
        box-sizing: border-box;
        max-width: 100%;
    }

    .vids-sidebar {
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .vids-sidebar-card {
        padding: 8px;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }

    .vids-sidebar-thumb {
        width: 100px;
        min-width: 100px;
    }

    .vids-sidebar-title {
        font-size: 12px;
    }

    .vids-sidebar-meta {
        font-size: 10.5px;
    }

    .vids-modal-card {
        margin: 10px;
    }
}

/* Specific player & watch responsive optimizations for smaller mobile screens */
@media (max-width: 640px) {
    .vids-page-wrapper {
        padding: 10px 8px 36px !important;
    }

    .custom-player-wrapper {
        border-radius: 10px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    }

    .custom-player-watermark {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 10px;
        gap: 4px;
        border-radius: 6px;
    }

    .custom-player-watermark .watermark-pulse {
        width: 6px;
        height: 6px;
    }

    .custom-player-watermark .watermark-icon {
        font-size: 9px;
    }

    .custom-player-watermark .watermark-ext {
        display: none;
    }

    .custom-player-big-play-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
        padding-left: 3px;
    }

    .custom-player-controls-bar {
        padding: 12px 6px 6px;
        gap: 4px;
    }

    .custom-player-controls-row {
        gap: 4px;
        flex-wrap: nowrap;
    }

    .custom-player-ctrl-group {
        gap: 4px;
    }

    .custom-player-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* Hide volume slider on mobile devices: phones have physical volume keys */
    .custom-player-vol-slider {
        display: none !important;
    }

    /* Hide theater mode button on mobile screens */
    #playerTheaterIcon,
    .custom-player-btn[title="Theater Mode"] {
        display: none !important;
    }

    .custom-player-time {
        font-size: 10px;
        letter-spacing: -0.2px;
    }

    .custom-player-speed-btn {
        display: none !important;
    }

    .custom-player-quality-btn {
        padding: 3px 6px;
        font-size: 10.5px;
    }

    .custom-player-quality-menu {
        right: -30px;
        min-width: 170px;
    }
}

@media (max-width: 480px) {
    .vids-watch-title {
        font-size: 16px;
        line-height: 1.3;
        margin: 10px 0 8px 0;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .vids-watch-actions {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .vids-watch-actions .vids-action-btn:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .vids-action-btn {
        padding: 8px 6px;
        font-size: 11px;
        gap: 4px;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .vids-action-btn i {
        font-size: 11px;
        flex-shrink: 0;
    }

    .vids-watch-desc-box {
        padding: 12px 14px;
        font-size: 12px;
        margin-bottom: 20px;
        border-radius: 8px;
        box-sizing: border-box;
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .vids-sidebar {
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .vids-sidebar-card {
        padding: 6px 8px;
        gap: 10px;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }

    .vids-sidebar-thumb {
        width: 90px;
        min-width: 90px;
        border-radius: 6px;
    }

    .vids-sidebar-title {
        font-size: 11.5px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .vids-sidebar-meta {
        font-size: 10px;
    }

    #submitPreviewWrap {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #submitThumbPreview {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 360px) {
    .vids-watch-actions {
        gap: 5px;
    }

    .vids-action-btn {
        padding: 7px 4px;
        font-size: 10.5px;
        gap: 3px;
    }

    .vids-sidebar-thumb {
        width: 80px;
        min-width: 80px;
    }
}

/* ==========================================================================
   PICTURE-IN-PICTURE (PIP) FLOATING MINI PLAYER (YOUTUBE-STYLE DOCKED PLAYER)
   ========================================================================== */
.vids-mini-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 99999;
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px) scale(0.92);
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
}

.vids-mini-player.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

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

.vids-mini-iframe-container {
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.vids-mini-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.vids-mini-top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 25;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.vids-mini-video-wrap:hover .vids-mini-top-overlay {
    opacity: 1;
}

.vids-mini-icon-btn {
    pointer-events: auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.vids-mini-icon-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

.vids-mini-expand-btn:hover {
    background: #38bdf8;
    border-color: #38bdf8;
}

/* Center Play/Pause button on mini player */
.vids-mini-center-ctrl {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    z-index: 20;
}

.vids-mini-video-wrap:hover .vids-mini-center-ctrl,
.vids-mini-center-ctrl.paused {
    opacity: 1;
}

.vids-mini-playpause-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.vids-mini-playpause-btn:hover {
    transform: scale(1.12);
    background: #ef4444;
    border-color: #ef4444;
}

/* Time readout pill in bottom-left over thumbnail (matches screenshot 2) */
.vids-mini-time-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 22;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #f8fafc;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* Bottom progress scrubber */
.vids-mini-progress-bar-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    z-index: 24;
    transition: height 0.15s ease;
}

.vids-mini-video-wrap:hover .vids-mini-progress-bar-wrap {
    height: 6px;
}

.vids-mini-progress-current {
    width: 0%;
    height: 100%;
    background: #ff0033;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.8);
}

.vids-mini-progress-current::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff0033;
    transition: transform 0.15s ease;
}

.vids-mini-video-wrap:hover .vids-mini-progress-current::after {
    transform: translateY(-50%) scale(1);
}

/* Metadata bar under video */
.vids-mini-meta-bar {
    background: #0f172a;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
}

.vids-mini-meta-bar:hover {
    background: #1e293b;
}

.vids-mini-meta-info {
    flex: 1;
    min-width: 0;
}

.vids-mini-title {
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.vids-mini-subtitle {
    color: #94a3b8;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.vids-mini-chevron-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.vids-mini-meta-bar:hover .vids-mini-chevron-btn {
    color: #38bdf8;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .vids-mini-player {
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

/* Mobile Video Player Critical Fixes */
@media (max-width: 768px) {
    .custom-player-wrapper {
        border-radius: 12px;
    }

    .custom-player-watermark {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .custom-player-big-play-btn {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .custom-player-shield {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .custom-player-big-play {
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 480px) {
    .custom-player-wrapper {
        border-radius: 8px;
    }

    .custom-player-watermark {
        font-size: 10px;
        padding: 4px 8px;
    }

    .custom-player-big-play-btn {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    /* CRITICAL: Disable shield on mobile to allow YouTube interaction */
    .custom-player-shield {
        pointer-events: none !important;
    }

    .custom-player-big-play {
        pointer-events: auto !important;
        -webkit-tap-highlight-color: transparent;
    }

    .custom-player-big-play-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Allow iframe interaction on mobile */
    .custom-player-iframe-wrap iframe {
        pointer-events: auto !important;
    }

    .custom-player-vol-slider {
        display: none;
    }

    .custom-player-quality-wrap {
        display: none;
    }

    .custom-player-speed-btn {
        display: none;
    }
}
        max-width: none;
    }
}

