/* ========================================
   REPRODUCTOR DE VIDEOS SIMULADO
   Dark Theme Premium Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a28;
    --bg-card: #15151f;
    --bg-card-hover: #1e1e2e;
    --bg-overlay: rgba(0, 0, 0, 0.85);
    --surface: #1e1e2e;
    --surface-hover: #262638;

    --text-primary: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #9e9ea9;
    --text-accent: #a78bfa;

    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --accent-subtle: rgba(139, 92, 246, 0.1);

    --red: #ef4444;
    --red-glow: rgba(239, 68, 68, 0.3);
    --green: #22c55e;
    --blue: #3b82f6;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--surface-hover);
}

/* ── Background Ambient ── */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(244, 63, 94, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ── Header / Navbar ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.navbar-brand .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #ec4899);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.navbar-search {
    flex: 1;
    max-width: 560px;
    margin: 0 40px;
    position: relative;
}

.navbar-search input {
    width: 100%;
    padding: 10px 20px 10px 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-normal);
}

.navbar-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
    background: var(--bg-tertiary);
}

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

.navbar-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-actions .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.navbar-actions .btn-icon:hover {
    background: var(--surface);
    color: var(--text-primary);
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 4px;
}

/* ── Main Layout ── */
.main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 24px;
    position: relative;
    z-index: 1;
}

/* ── Category Tags / Filter Bar ── */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-tag {
    padding: 8px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
    text-decoration: none;
    font-family: inherit;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 2px 12px var(--accent-glow);
}

/* ── Video Grid ── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

/* ── Video Card ── */
.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.video-card:hover .card-thumbnail::after {
    opacity: 1;
}

.video-card:hover .card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: var(--transition-normal);
}

.thumbnail-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
}

.thumbnail-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: brightness(0.7) saturate(1.3);
}

.thumbnail-bg .thumb-icon {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
}

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 54px;
    height: 54px;
    background: rgba(139, 92, 246, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 2;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.card-play-btn svg {
    width: 22px;
    height: 22px;
    fill: white;
    margin-left: 3px;
}

.card-info {
    padding: 14px 16px 18px;
}

.card-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.card-channel {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-meta .dot {
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* ── PAGE: VIDEO PLAYER ── */
.video-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.video-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

/* ── Player Container ── */
.player-wrapper {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.player-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.player-screen .ambient-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    filter: blur(60px);
    z-index: 0;
}

/* Error / Unavailable Overlay */
.player-unavailable {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    text-align: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
    /* background: rgba(0, 0, 0, 0.92); */
}

.player-unavailable.show {
    opacity: 1;
    visibility: visible;
}

.player-unavailable .error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    border: 2px solid rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    animation: pulse-error 2s ease infinite;
}

@keyframes pulse-error {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(239, 68, 68, 0);
    }
}

.player-unavailable h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.player-unavailable p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 380px;
    line-height: 1.2;
}

/* Play Big Button (initial state) */
.player-play-big {
    position: absolute;
    z-index: 4;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.5);
    /* backdrop-filter: blur(8px); */
    border: 3px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
}

@media screen and (max-width: 720px) {
    .player-play-big {
        width: 45px;
        height: 45px;    
    }
    .player-unavailable p {
        font-size: 13px;
        line-height: 1.1;
    }
    .player-unavailable .error-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    .player-play-big {
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
}

.player-play-big:hover {
    transform: scale(1.1);
    background: rgba(139, 92, 246, 1);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.6);
}

.player-play-big svg {
    width: 28px;
    height: 28px;
    fill: white;
    margin-left: 4px;
}

.player-play-big.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
}

/* Thumbnail overlay */
.player-thumbnail {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    z-index: 1;
    transition: var(--transition-slow);
}

.player-thumbnail.hidden {
    opacity: 0;
}

/* Loading animation */
.player-loading {
    position: absolute;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.player-loading.show {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.player-loading span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Controls Bar ── */
.player-controls {
    position: relative;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.0), rgba(10, 10, 15, 0.95));
    padding: 0 10px 13px;
    z-index: 100;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
    transition: height var(--transition-fast);
}

.progress-container:hover {
    height: 6px;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
    transition: transform var(--transition-fast);
}

.progress-container:hover .progress-bar::after {
    transform: translateY(-50%) scale(1);
}

.progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    width: 0%;
}

/* Controls Row */
.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ctrl-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 1.05rem;
}

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

.ctrl-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.time-display {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    margin-left: 4px;
    user-select: none;
}

/* Volume Slider */
.volume-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.volume-slider {
    width: 0;
    overflow: hidden;
    transition: width var(--transition-normal);
    display: flex;
    align-items: center;
}

.volume-group:hover .volume-slider {
    width: 80px;
}

.volume-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 72px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

/* ── Video Info Section ── */
.video-info {
    margin-top: 5px;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.video-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.video-stats-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.video-stats-left .dot {
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
}

.video-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
}

.action-btn:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.action-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Channel Info */
.channel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.channel-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.channel-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.channel-subs {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-subscribe {
    padding: 10px 22px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
}

.btn-subscribe:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow);
}

/* Description Box */
.description-box {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border);
}

.description-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: pre-wrap;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.video-tag {
    padding: 5px 12px;
    background: var(--accent-subtle);
    color: var(--text-accent);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: default;
}

.video-tag:hover {
    background: rgba(139, 92, 246, 0.2);
}

/* ── Sidebar: Related Videos ── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.related-card {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.related-card:hover {
    background: var(--surface);
}

.related-thumb {
    width: 170px;
    min-width: 170px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.related-thumb .thumbnail-bg {
    font-size: 1.8rem;
}

.related-thumb .card-duration {
    font-size: 0.7rem;
    padding: 2px 6px;
    bottom: 5px;
    right: 5px;
}

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

.related-info .card-title {
    font-size: 0.83rem;
    -webkit-line-clamp: 2;
    margin-bottom: 5px;
}

.related-info .card-channel {
    font-size: 0.76rem;
    margin-bottom: 2px;
}

.related-info .card-meta {
    font-size: 0.73rem;
}

/* ── Página de sección ── */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
}

/* ── Footer ── */
.footer {
    margin-top: 60px;
    padding: 30px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    position: relative;
    z-index: 1;
}

.footer a {
    color: var(--text-accent);
    text-decoration: none;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card {
    animation: fadeInUp 0.5s ease backwards;
}

.video-card:nth-child(1) {
    animation-delay: 0.05s;
}

.video-card:nth-child(2) {
    animation-delay: 0.1s;
}

.video-card:nth-child(3) {
    animation-delay: 0.15s;
}

.video-card:nth-child(4) {
    animation-delay: 0.2s;
}

.video-card:nth-child(5) {
    animation-delay: 0.25s;
}

.video-card:nth-child(6) {
    animation-delay: 0.3s;
}

.video-card:nth-child(7) {
    animation-delay: 0.35s;
}

.video-card:nth-child(8) {
    animation-delay: 0.4s;
}

.video-card:nth-child(9) {
    animation-delay: 0.45s;
}

.video-card:nth-child(10) {
    animation-delay: 0.5s;
}

.video-card:nth-child(11) {
    animation-delay: 0.55s;
}

.video-card:nth-child(12) {
    animation-delay: 0.6s;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .video-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 12px;
    }

    .related-card {
        padding: 6px;
    }
}

@media (max-width: 768px) {
    .navbar-search {
        display: none;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }

    .main-container {
        padding: 20px 16px;
    }

    .video-page {
        padding: 12px;
    }

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

    .video-stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-thumb {
        width: 140px;
        min-width: 140px;
    }
}

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

    .filter-bar {
        margin-bottom: 20px;
    }

    .video-actions {
        flex-wrap: wrap;
    }
}

/* Estilos para el texto de carga con sombra */
.player-loading span {
    background: rgba(0, 0, 0, 0.75);
    padding: 8px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

/* Menú de configuración (Engranaje) */
.settings-menu {
    position: absolute;
    bottom: 45px;
    right: 0;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 0;
    min-width: 140px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.settings-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.settings-header {
    padding: 4px 16px 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quality-option {
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.quality-option:hover {
    background: var(--surface-hover);
}

.quality-option.active {
    color: var(--accent);
    font-weight: 600;
}

.quality-option span {
    font-size: 0.7rem;
    background: var(--accent-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}