:root {
    --primary-color: #D4AF37;
    --text-color: #fff;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: #000;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden; /* Prevent body scroll */
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
}

.back-btn {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.top-nav h1 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.video-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.video-container::-webkit-scrollbar {
    display: none;
}

.play-item {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.play-info {
    position: relative;
    z-index: 10;
    padding: 30px 80px 30px 20px;
    width: 100%;
    color: white;
    box-sizing: border-box;
}

.play-genre {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.play-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin: 0 0 10px 0;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.play-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.play-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.play-price {
    color: #2ecc71;
}
.play-price.free {
    color: #f1c40f;
}

.play-rating i {
    color: var(--primary-color);
    margin-right: 5px;
}

.side-actions {
    position: absolute;
    right: 15px;
    bottom: 50px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn .icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
    border: 1px solid rgba(255,255,255,0.3);
}

.action-btn.primary .icon-circle {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.action-btn span {
    font-size: 0.8rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.loader-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

.item-loader {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Mobile Responsive Fixes --- */
@media (max-width: 768px) {
    /* Push content up slightly to avoid bottom browser bars blocking text */
    .play-info {
        padding: 20px 75px 80px 15px; /* Added 80px bottom padding */
    }

    /* Reduce title size */
    .play-title {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    /* Reduce description lines to save space */
    .play-desc {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .play-meta {
        font-size: 0.8rem;
    }

    /* Shrink and reposition side actions so they don't block bottom text */
    .side-actions {
        bottom: 80px;
        right: 10px;
        gap: 15px;
    }

    .action-btn .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .action-btn span {
        font-size: 0.7rem;
    }
}
