/* Vietnamese Game Detail Page Styles */

/* ===== CSS Variables (defaults, overridden by JS) ===== */
:root {
    --game-primary: #c9a227;
    --game-accent: #1a2744;
    --game-text: #ffffff;
    --game-gradient-start: rgba(201, 162, 39, 0.3);
    --game-gradient-end: rgba(26, 26, 46, 0.9);
}

/* ===== Header Background (same as home page) ===== */
.main-header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.main-header.scrolled {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== Hero Section - Full Image (No Gradient) ===== */
.game-hero {
    position: relative;
    height: 75vh;
    min-height: 550px;
    max-height: 850px;
    overflow: visible;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Logo wrapper - positioned at bottom, overlapping edge */
.hero-logo-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 40%);
    z-index: 20;
    text-align: center;
}

.game-logo {
    max-width: 450px;
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.5));
}

/* ===== Title Section (Solid background below hero) ===== */
.game-title-section {
    background: var(--game-accent);
    padding: 100px 40px 50px;
    text-align: center;
}

.title-content {
    max-width: 900px;
    margin: 0 auto;
}

.game-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--game-text);
    margin: 0 0 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Game Meta - Horizontal layout like reference */
.game-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.meta-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.meta-value.status-complete {
    color: #2ed573;
}

.meta-value.status-updating {
    color: #ffc107;
}

.meta-value.status-free {
    color: #2ed573;
}

/* Hero Actions - Centered */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-download-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--game-primary);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-download-primary svg {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
}


/* ===== Story Sections (Parallax) ===== */
.story-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.story-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
    overflow: hidden;
}

/* Story background image (shown initially) */
.story-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
    transition: opacity 1.5s ease;
}

.story-bg-image.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Story background video (fades in when ready) */
.story-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.story-bg-video.visible {
    opacity: 1;
}

/* Add subtle overlay for text readability */
.story-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.story-section-2 .story-background::after {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.story-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding: 60px;
    margin-left: 80px;
}

.story-content-right {
    margin-left: auto;
    margin-right: 80px;
}

.story-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 24px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.story-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 16px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.vietnamese-highlight {
    color: var(--game-primary);
    font-weight: 500;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border-left: 4px solid var(--game-primary);
}

/* Features List in Story Section */
.story-section .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.story-section .features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    transition: transform 0.3s ease, background 0.3s ease;
}

.story-section .features-list li:hover {
    transform: translateX(10px);
    background: rgba(0, 0, 0, 0.6);
}

.story-section .features-list li::before {
    content: '✓';
    color: var(--game-primary);
    font-weight: bold;
    font-size: 18px;
}

/* ===== Media Section ===== */
.media-section {
    background: var(--game-primary);
    padding: 80px 0;
    text-align: center;
}

.media-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.media-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
    align-items: start;
}

.media-featured {
    grid-row: span 2;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.media-featured .media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-featured:hover .media-img {
    transform: scale(1.05);
}

.media-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-featured:hover .media-play-icon {
    opacity: 1;
}

.media-play-icon svg {
    width: 64px;
    height: 64px;
    color: #fff;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.media-thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.media-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-thumb:hover img {
    transform: scale(1.1);
}

.btn-all-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-all-media:hover {
    background: #fff;
    color: var(--game-primary);
}

/* ===== Changelog in Story Section ===== */
.story-section .changelog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.story-section .changelog-list::-webkit-scrollbar {
    width: 6px;
}

.story-section .changelog-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.story-section .changelog-list::-webkit-scrollbar-thumb {
    background: var(--game-primary);
    border-radius: 3px;
}

.changelog-item {
    display: flex;
    gap: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border-left: 3px solid var(--game-primary);
    text-align: left;
}

.changelog-version {
    min-width: 80px;
}

.changelog-version .version {
    font-size: 16px;
    font-weight: 700;
    color: var(--game-primary);
}

.changelog-version .date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.changelog-notes {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* ===== Floating Sidebar ===== */
.floating-sidebar {
    position: fixed;
    right: -320px; /* Start off-screen */
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: right 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, visibility 0.4s ease;
}

.floating-sidebar.visible {
    right: 30px; /* Slide into view */
    opacity: 1;
    visibility: visible;
}

.floating-sidebar .sidebar-card {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Support Links */
.support-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.support-link:last-child {
    margin-bottom: 0;
}

.support-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.support-link.discord:hover {
    background: rgba(88, 101, 242, 0.2);
    color: #5865F2;
}

.support-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1400px) {
    .floating-sidebar {
        display: none;
    }
}

@media (max-width: 1024px) {
    .story-content {
        max-width: 100%;
        margin: 0;
        padding: 40px;
    }

    .story-content-right {
        margin: 0;
    }

    .story-title {
        font-size: 32px;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-featured {
        grid-row: auto;
        aspect-ratio: 16 / 9;
    }

    .game-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .game-hero {
        min-height: 60vh;
    }

    .game-hero .hero-content {
        padding: 40px 20px;
    }

    .game-title {
        font-size: 28px;
    }

    .game-logo {
        max-width: 280px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-download-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .story-section {
        min-height: auto;
        padding: 80px 0;
    }

    .story-background {
        background-attachment: scroll;
    }

    .story-content {
        padding: 30px 20px;
    }

    .story-title {
        font-size: 28px;
    }

    .media-section {
        padding: 60px 0;
    }

    .media-container {
        padding: 0 20px;
    }

    .media-title {
        font-size: 28px;
    }

    .media-thumbnails {
        grid-template-columns: 1fr;
    }
}

/* ===== Layout Variations ===== */
.layout-hero-center .hero-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.layout-hero-center .game-meta {
    justify-content: center;
}

.layout-hero-center .hero-actions {
    justify-content: center;
}

.layout-hero-center .game-logo {
    margin-left: auto;
    margin-right: auto;
}

/* ===== Loading State ===== */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.error-message h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

/* ===== Lightbox Modal ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 60px 80px 100px;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* Navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-nav:disabled:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

/* Main content area */
.lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox-video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Counter */
.lightbox-counter {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Thumbnail bar */
.lightbox-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.lightbox-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.lightbox-thumb:hover {
    opacity: 1;
}

.lightbox-thumb.active {
    border-color: var(--game-primary, #c9a227);
    opacity: 1;
    transform: scale(1.05);
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video thumbnail indicator */
.lightbox-thumb.video-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-thumb.video-thumb::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    z-index: 1;
}

/* Loading spinner */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--game-primary, #c9a227);
    border-radius: 50%;
    animation: lightbox-spin 1s linear infinite;
}

@keyframes lightbox-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .lightbox-container {
        padding: 50px 20px 90px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-nav svg {
        width: 22px;
        height: 22px;
    }

    .lightbox-thumbnails {
        padding: 12px 20px;
        gap: 8px;
    }

    .lightbox-thumb {
        width: 70px;
        height: 42px;
    }

    .lightbox-counter {
        font-size: 12px;
        padding: 6px 14px;
    }
}

/* ===== Disclaimer Toast ===== */
.disclaimer-toast {
    position: fixed;
    bottom: 30px;
    left: -400px; /* Hidden off-screen initially */
    width: 380px;
    background: rgba(15, 20, 31, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 16px 36px 16px 16px; /* Extra padding on right for close button */
    z-index: 1000;
    transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease, bottom 0.5s ease;
    opacity: 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
}

.disclaimer-toast.show {
    left: 30px;
    opacity: 1;
}

.disclaimer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.disclaimer-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.disclaimer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
}

.disclaimer-text strong {
    color: #fff;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .disclaimer-toast {
        width: calc(100% - 40px);
        left: 20px;
        bottom: -150px;
        transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    }
    
    .disclaimer-toast.show {
        bottom: 20px;
        left: 20px;
    }
}

/* ===== OST Player ===== */
.ost-player {
    position: fixed;
    bottom: 30px;
    left: -500px; /* Hidden off-screen initially */
    width: 400px;
    background: rgba(15, 20, 31, 0.25); /* More transparent */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 16px 36px 16px 16px;
    z-index: 1000;
    transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    opacity: 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
}

.ost-player.show {
    left: 30px;
    opacity: 1;
}

.ost-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ost-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--game-primary, #fff);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, filter 0.2s;
}

.ost-play-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.ost-play-btn svg {
    width: 20px;
    height: 20px;
}

.ost-info {
    flex-grow: 1;
    min-width: 0; /* Prevents overflow */
}

.ost-title {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ost-waveform {
    width: 100%;
    height: 30px;
}

@media (max-width: 768px) {
    .ost-player {
        width: calc(100% - 40px);
        left: 20px;
        bottom: -150px;
        transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    }
    
    .ost-player.show {
        bottom: 20px;
        left: 20px;
    }
}

/* Push disclaimer up if OST player is active */
body.ost-visible .disclaimer-toast {
    bottom: 120px !important;
}
