@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #141414;
    --text-color: #ffffff;
    --primary-color: #e50914;
    --secondary-color: #b3b3b3;
    --overlay-color: rgba(0, 0, 0, 0.7);
    --font-family: 'Outfit', sans-serif;
    --header-height: 68px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 10%, transparent);
    transition: background 0.3s;
    box-sizing: border-box;
}

header.scrolled {
    background-color: #141414;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo i {
    font-size: 1.4rem;
}

.search-bar input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #fff;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-family);
    width: 200px;
    transition: width 0.3s, background 0.3s;
}

.search-bar input:focus {
    width: 280px;
    background: rgba(0, 0, 0, 0.8);
    outline: none;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.genre-select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #fff;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 26px;
}

.genre-select:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.8);
}

.genre-select option {
    background: #141414;
    color: #fff;
}

/* Back Button */
.back-btn {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--primary-color);
}


/* Hero Section */
.hero {
    min-height: 85vh;
    height: auto;
    background-size: cover;
    background-position: center top;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 4%;
    padding-bottom: 10rem;
    /* Increased breathing room for long content */
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #141414 0%, transparent 40%),
        linear-gradient(to right, #141414 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin-top: 100px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-overview {
    font-size: 1.2rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    border: none;
    border-radius: 4px;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.2s, background 0.2s, opacity 0.2s;
    text-decoration: none;
    font-family: var(--font-family);
}

.btn:hover {
    transform: scale(1.05);
}

.btn-play,
.btn-primary {
    background-color: #fff;
    color: #000;
}

.btn-play:hover,
.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.btn-info,
.btn-secondary {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-info:hover,
.btn-secondary:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

/* Content Rows */
.category {
    padding: 0 4%;
    margin-bottom: 3rem;
    position: relative;
    z-index: 20;
    margin-top: 4rem;
    /* Removed overlap to prevent collision with buttons */
}

.category-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #e5e5e5;
}

.movie-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    width: 100%;
}

/* Scrollbar styles removed as they are no longer needed for the row itself, 
   but kept global or for specific elements if needed. 
   Removing the specific .movie-row scrollbar styles. */

.movie-card {
    min-width: 200px;
    aspect-ratio: 2/3;
    border-radius: 4px;
    background-color: #2f2f2f;
    position: relative;
    transition: transform 0.3s, z-index 0s 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.movie-card:hover {
    transform: scale(1.1);
    /* Zoom effect */
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    opacity: 0;
    transition: opacity 0.3s;
}

.movie-card:hover .movie-info {
    opacity: 1;
}

.movie-info h4 {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

/* Movie Detail Page */
.detail-container {
    padding-top: var(--header-height);
}

.detail-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-size: cover;
    background-position: center top;
}

.detail-mask {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(20, 20, 20, 1) 30%, rgba(20, 20, 20, 0) 100%);
}

.movie-detail-content {
    display: flex;
    padding: 4% 4%;
    gap: 40px;
    min-height: 80vh;
}

.left-col {
    flex: 1;
    max-width: 40%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Mobile responsive fixes */
@media (max-width: 900px) {
    .movie-detail-content {
        flex-direction: column;
        gap: 20px;
        padding-top: 20px;
    }

    .left-col,
    .right-col {
        max-width: 100%;
        flex: 1;
    }

    /* En móvil, el video (right-col) va primero si así se desea, o mantenemos el orden normal */
    /* El usuario pidió "muestre el video embedido a la derecha" en desktop. */
    /* En móvil, lo pondremos arriba para mejor UX */
    .right-col {
        order: -1;
    }
}

.right-col {
    flex: 1.5;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.meta-data {
    display: flex;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    align-items: center;
}

.match-score {
    color: #46d369;
    font-weight: 700;
}

.year {
    color: #fff;
}

.badge {
    border: 1px solid #777;
    padding: 0 5px;
    font-size: 0.8rem;
    border-radius: 2px;
}

.synopsis {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #fff;
}

.cast-list {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 2rem;
}

.cast-list span {
    color: #fff;
}

.action-row {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

/* Player Frame */
.video-frame {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.p2p-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    color: #fff;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(229, 9, 20, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Actor Grid */
.cast-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.cast-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #e5e5e5;
}

.actor-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.actor-card {
    min-width: 100px;
    text-align: center;
}

* {
    box-sizing: border-box;
}

.actor-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid #333;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.actor-card img.is-placeholder {
    background: #222;
    padding: 12px;
    opacity: 0.6;
}

.actor-card .actor-name {
    font-size: 0.8rem;
    color: #fff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actor-card .actor-role {
    font-size: 0.7rem;
    color: var(--secondary-color);
}

/* Details Grid */
.movie-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #aaa;
}

.movie-details-grid .info-item {
    margin: 0;
}

.movie-details-grid span {
    color: #fff;
}

.tagline-row {
    margin-top: 1.5rem;
    border-top: 1px solid #333;
    padding-top: 1rem;
    color: #888;
}

.meta-badge {
    background-color: #333;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .movie-detail-content {
        flex-direction: column;
        padding-top: 80px;
    }

    .left-col {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .detail-mask {
        background: linear-gradient(to top, #141414 60%, transparent 100%);
    }

    .detail-title {
        font-size: 2.5rem;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Detail Page Layout */
.movie-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    z-index: -2;
}

.backdrop-mask {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 70%, #000 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 1) 90%);
}

.detail-content {
    display: flex;
    flex-direction: column;
    padding: 120px 6%;
    gap: 20px;
    z-index: 10;
}

.title-section {
    max-width: 800px;
    margin-bottom: 20px;
}

.detail-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin: 0 0 20px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-weight: 400;
    font-size: 1.25rem;
    color: #a3a3a3;
}

.match-score {
    color: #46d369;
    font-weight: 700;
}

.maturity-rating,
.hd-badge {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1px 8px;
    font-size: 0.85rem;
    border-radius: 2px;
    color: #fff;
    font-weight: 700;
}

.overview {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    color: #efefef;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-primary {
    background-color: #fff;
    color: #000;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

/* Botones Premium */
.btn-secondary {
    background: linear-gradient(135deg, #1f1f1f 0%, #333 100%);
    color: #fff;
    border: 1px solid #444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-color: #666;
}

/* Botón Ver Película (cuando hay trailer) */
.btn-watch-movie {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    width: fit-content;
    transition: all 0.3s ease;
}

.btn-watch-movie:hover {
    background-color: #b30710;
    transform: scale(1.05);
}

#trailerContainer {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

#trailerContainer iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
}


/* Player Wrapper */
.player-wrapper {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.player-wrapper h3 {
    margin: 0 0 15px 0;
    color: #e50914;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.p2p-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 20px;
    text-align: center;
}

.p2p-stats-row {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.p2p-stats-row b {
    color: #fff;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(229, 9, 20, 0.3);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#trailerBtn {
    background-color: #ff0000;
    /* YouTube Red */
    color: #fff;
    border: none;
}

#trailerBtn:hover {
    background-color: #cc0000;
}

.actor-grid::-webkit-scrollbar {
    height: 4px;
}

.actor-grid::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

.actor-card img:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
    border-color: var(--primary-color);
}

.error-state {
    color: #ff4d4d;
    text-align: center;
    padding: 40px;
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Home Page Specifics */
.hero {
    height: 80vh;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    box-shadow: inset 0 -100px 100px #141414;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #141414 0%, transparent 60%);
}

.hero-content {
    position: relative;
    max-width: 600px;
}



.movie-card {
    min-width: 200px;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
}

.movie-card:hover {
    transform: scale(1.1);
    z-index: 99;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .detail-content {
        flex-direction: column;
    }

    .right-col {
        order: -1;
    }

    /* Video arriba en móvil */
}

/* Screenshots Gallery */
.screenshots-section {
    margin-top: 2rem;
}

.screenshots-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #e5e5e5;
}

.screenshot-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.screenshot-gallery img {
    height: 120px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid #333;
}

.screenshot-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* --- Homepage: Indicador de carga (scroll infinito) --- */
.loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 0;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.spinner-sm {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(229, 9, 20, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* --- Homepage: Hero Meta --- */
.hero-meta {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* --- Separador entre secciones --- */
#allMoviesSection {
    border-top: 1px solid #333;
    padding-top: 2rem;
}

#allMoviesSection .category-title {
    color: #e5e5e5;
    font-size: 1.4rem;
    font-weight: 500;
}

/* --- Tendencias: icono de fuego --- */
#trendingSection .category-title i {
    color: #ff6b35;
    margin-right: 6px;
}

#allMoviesSection .category-title i {
    margin-right: 6px;
}

.back-home-btn {
    color: #fff;
    text-decoration: none;
    margin-right: 12px;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.back-home-btn:hover {
    color: var(--primary-color);
}

/* --- Botón Streaming P2P (coherente con el sitio) --- */
.btn-streaming {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-streaming:hover {
    background: #b30710;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(229, 9, 20, 0.4);
}

.btn-streaming i {
    font-size: 1.1rem;
}

/* --- Overlay del reproductor P2P --- */
.player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.player-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    flex-shrink: 0;
}

.player-overlay-header h2 {
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-overlay-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.player-overlay-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.player-overlay-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.player-overlay-body .video-player {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: 80vh;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.player-overlay-body .video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Stats P2P dentro del overlay */
.player-overlay-body .p2p-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 18px 20px 12px;
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    font-family: var(--font-family);
    color: var(--secondary-color);
}

.player-overlay-body .p2p-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-overlay-body .p2p-stats .stat i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Overlay de estado (cargando, buscando peers...) */
.player-overlay-body #status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.9);
    z-index: 5;
}

.player-overlay-body #status-overlay .spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.player-overlay-body #status-overlay #p2p-status {
    color: var(--secondary-color);
    font-family: var(--font-family);
    font-size: 0.95rem;
}

/* Aviso de formato MKV */
#format-warning {
    display: none;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #ffb74d;
    padding: 10px 16px;
    border-radius: 4px;
    margin-top: 12px;
    font-size: 0.85rem;
    font-family: var(--font-family);
    align-items: center;
    gap: 8px;
}

/* Responsive overlay */
@media (max-width: 768px) {
    .player-overlay-header {
        padding: 12px 16px;
    }

    .player-overlay-header h2 {
        font-size: 0.95rem;
    }

    .player-overlay-body {
        padding: 8px;
    }

    .player-overlay-body .p2p-stats {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 0.75rem;
    }

    .btn-streaming {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}