/* ============================================
   HIROHIRO GAMES SYSTEM STYLES
   ============================================ */

.games-container {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    padding: var(--space-xl, 32px) var(--space-lg, 24px);
}

.games-header {
    text-align: center;
    margin-bottom: var(--space-xl, 40px);
}

.games-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-family-headings, system-ui, -apple-system, sans-serif);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.games-subheading {
    font-size: 1.1rem;
    color: var(--color-text-muted, #a1a1aa);
    margin: 0;
    line-height: 1.5;
}

.games-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-family-headings, system-ui, -apple-system, sans-serif);
    margin: 0 0 20px 0;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.game-card {
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.game-card:hover,
.game-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.15);
}

.game-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1f1f23;
    overflow: hidden;
}

.game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumbnail {
    transform: scale(1.04);
}

.game-badge-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.game-badge {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.game-meta-row {
    font-size: 0.85rem;
    color: var(--color-text-muted, #a1a1aa);
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.game-description {
    font-size: 0.9rem;
    color: #d4d4d8;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.game-play-btn:hover,
.game-play-btn:focus {
    background: #2563eb;
    color: #ffffff;
    outline: none;
}

/* Empty State */
.games-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #121214;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg, 12px);
    max-width: 600px;
    margin: 40px auto;
}

.games-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.8;
}

.games-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.games-empty-text {
    color: var(--color-text-muted, #a1a1aa);
    font-size: 0.95rem;
    margin: 0;
}

/* Game Player View */
.player-page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-xl, 32px) var(--space-lg, 24px);
}

.back-to-games-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-to-games-link:hover {
    color: #60a5fa;
    transform: translateX(-3px);
}

.player-main-card {
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

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

#ruffle-player-target {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ruffle-player-target ruffle-embed,
#ruffle-player-target ruffle-player,
#ruffle-player-target canvas,
#ruffle-player-target iframe {
    width: 100% !important;
    height: 100% !important;
    touch-action: manipulation;
}

/* Loading & Error Overlays */
.player-status-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
    z-index: 10;
}

.player-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.player-status-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.player-status-desc {
    font-size: 0.9rem;
    color: #a1a1aa;
    max-width: 400px;
    margin: 0;
}

/* Player Info Bar */
.player-info-bar {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #18181b;
}

.player-meta-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-game-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.player-game-sub {
    font-size: 0.9rem;
    color: #a1a1aa;
    display: flex;
    gap: 8px;
    align-items: center;
}

.player-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.player-control-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.player-control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.player-details-section {
    padding: 28px;
}

.player-description-text {
    font-size: 1rem;
    color: #d4d4d8;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Orientation Hint Banner */
.mobile-orientation-hint {
    display: none;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

@media (max-width: 768px) and (orientation: portrait) {
    .mobile-orientation-hint {
        display: flex;
    }
}

.sidebar-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Download Game View */
.download-hero-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
}

.download-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-download-btn,
.download-action-btn {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

.game-download-btn:hover,
.download-action-btn:hover {
    background: #2563eb !important;
}

/* Legal & Age Disclaimer Box */
.games-legal-disclaimer {
    background: rgba(24, 24, 27, 0.85);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-lg, 10px);
    padding: 16px 20px;
    margin: 24px 0 32px 0;
    font-size: 0.88rem;
    color: #d4d4d8;
    line-height: 1.5;
}

.games-legal-disclaimer strong {
    color: #f87171;
}

.games-legal-disclaimer a {
    color: #3b82f6;
    text-decoration: underline;
}

.games-legal-disclaimer a:hover {
    color: #60a5fa;
}

/* ============================================
   GAME TAGS & CATEGORIES STYLING
   ============================================ */

/* Single Game Page Tag Section */
.player-tags-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.player-tags-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e4e4e7;
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
}

/* Individual Tag Pill */
.game-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    line-height: 1.4;
    user-select: none;
}

.game-tag-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    filter: brightness(1.15);
}

/* Multi-Color Themes for Tags */
.tag-theme-rose {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.35);
}
.tag-theme-rose:hover {
    background: rgba(244, 63, 94, 0.22);
    border-color: rgba(244, 63, 94, 0.6);
}

.tag-theme-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}
.tag-theme-purple:hover {
    background: rgba(168, 85, 247, 0.22);
    border-color: rgba(168, 85, 247, 0.6);
}

.tag-theme-cyan {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.35);
}
.tag-theme-cyan:hover {
    background: rgba(6, 182, 212, 0.22);
    border-color: rgba(6, 182, 212, 0.6);
}

.tag-theme-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.tag-theme-emerald:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.6);
}

.tag-theme-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.tag-theme-amber:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.6);
}

.tag-theme-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.35);
}
.tag-theme-indigo:hover {
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(99, 102, 241, 0.6);
}

.tag-theme-fuchsia {
    background: rgba(217, 70, 239, 0.12);
    color: #e879f9;
    border: 1px solid rgba(217, 70, 239, 0.35);
}
.tag-theme-fuchsia:hover {
    background: rgba(217, 70, 239, 0.22);
    border-color: rgba(217, 70, 239, 0.6);
}

.tag-theme-red {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.tag-theme-red:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Games Library Two-Column Layout (Sidebar on Left) */
.games-layout-wrapper {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-top: 24px;
}

.games-sidebar {
    width: 270px;
    flex-shrink: 0;
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg, 12px);
    padding: 20px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-search-box {
    width: 100%;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-search-box:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.sidebar-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag-item {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 16px;
}

.sidebar-tag-item.active {
    box-shadow: 0 0 0 2px #3b82f6, 0 0 12px rgba(59, 130, 246, 0.4);
    font-weight: 700;
}

.sidebar-tag-count {
    opacity: 0.7;
    font-size: 0.72rem;
    margin-left: 2px;
}

.games-main-content {
    flex-grow: 1;
    min-width: 0;
}

/* Active Tag Filter Banner above Grid */
.active-tag-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 0.95rem;
}

.active-tag-banner strong {
    color: #60a5fa;
}

.clear-tag-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clear-tag-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Card Tags inside Grid */
.game-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.game-card-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 12px;
}


/* ============================================
   FLOATING "MORE GAMES COMING SOON!" NOTIFICATION BUTTON
   ============================================ */

.floating-notif-container {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    animation: continuousFloatNotif 3s ease-in-out infinite;
}

/* Tooltip popping upward */
.floating-notif-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background-color: #111827;
    color: #ffffff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    z-index: 991;
}

.floating-notif-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent;
}

/* Show tooltip on hover, focus, or when auto-shake active */
.floating-notif-container:hover .floating-notif-tooltip,
.floating-notif-btn:focus-visible + .floating-notif-tooltip,
.floating-notif-container.show-tooltip .floating-notif-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Floating Action Button */
.floating-notif-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #121214;
    border: 2px solid rgba(0, 123, 255, 0.5);
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35), 0 0 16px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
}

.floating-notif-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-notif-btn:hover {
    transform: scale(1.12);
    border-color: #3b82f6;
    box-shadow: 0 6px 22px rgba(0, 123, 255, 0.65), 0 0 24px rgba(59, 130, 246, 0.5);
}

.floating-notif-btn:active {
    transform: scale(0.95);
}

/* Periodic Automatic Shake & Jitter Animation */
.floating-notif-container.is-shaking {
    animation: floatAutoShakeNotif 0.75s ease-in-out;
}

.floating-notif-container.is-shaking .floating-notif-btn {
    box-shadow: 0 0 28px rgba(0, 123, 255, 0.8), 0 4px 20px rgba(59, 130, 246, 0.6);
    border-color: #3b82f6;
}

@keyframes continuousFloatNotif {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes floatAutoShakeNotif {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    15% { transform: translateX(-50%) translateY(-6px) rotate(-12deg); }
    30% { transform: translateX(-50%) translateY(0) rotate(12deg); }
    45% { transform: translateX(-50%) translateY(-4px) rotate(-8deg); }
    60% { transform: translateX(-50%) translateY(0) rotate(6deg); }
    75% { transform: translateX(-50%) translateY(-2px) rotate(-4deg); }
}

/* ============================================
   RESPONSIVE DESIGN (TABLET & MOBILE SCREENS)
   ============================================ */

/* /* ============================================
   RESPONSIVE DESIGN (TABLET & MOBILE SCREENS)
   ============================================ */

/* Tablet & Smaller Laptops (≤1024px) */
@media (max-width: 1024px) {
    .games-container {
        padding: 20px 14px !important;
        box-sizing: border-box !important;
    }

    .games-layout-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        align-items: stretch !important;
        margin-top: 16px !important;
        width: 100% !important;
    }

    .games-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        flex-shrink: 1 !important;
        position: relative !important;
        top: 0 !important;
        max-height: none !important;
        padding: 14px 16px !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    .games-main-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .sidebar-title-row {
        margin-bottom: 10px;
    }

    .sidebar-toggle-btn {
        display: inline-flex !important;
        align-items: center;
    }
}

/* Mobile Screens (≤768px) */
@media (max-width: 768px) {
    .games-header {
        margin-bottom: 16px !important;
    }

    .games-title {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem) !important;
    }

    .games-subheading {
        font-size: 0.9rem !important;
    }

    /* Horizontal scrollable tags ribbon on mobile */
    .sidebar-tags-cloud {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 6px !important;
        padding-bottom: 4px !important;
        scrollbar-width: thin;
        max-height: none !important;
    }

    .sidebar-tags-cloud.expanded {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        max-height: 240px !important;
        overflow-y: auto !important;
    }

    .sidebar-tag-item {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .sidebar-search-box {
        display: none;
    }

    .sidebar-search-box.visible {
        display: block !important;
    }

    .games-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .game-card {
        width: 100% !important;
    }

    .game-content {
        padding: 14px !important;
    }

    .game-card-title {
        font-size: 1.15rem !important;
        word-break: break-word !important;
    }

    .game-play-btn {
        padding: 10px 14px !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .player-page-wrapper {
        padding: 12px 8px !important;
    }

    .back-to-games-link {
        margin-bottom: 12px !important;
        font-size: 0.88rem !important;
    }

    .player-stage-container {
        aspect-ratio: 16 / 10 !important;
        min-height: 260px !important;
        max-height: 65vh !important;
        border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0 !important;
    }

    .player-stage-container:fullscreen,
    .player-stage-container:-webkit-full-screen {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        aspect-ratio: auto !important;
        border-radius: 0 !important;
    }

    .player-info-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px !important;
    }

    .player-game-title {
        font-size: clamp(1.15rem, 4.5vw, 1.45rem) !important;
    }

    .player-game-sub {
        font-size: 0.82rem !important;
        flex-wrap: wrap !important;
    }

    .player-controls {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
    }

    .player-control-btn,
    .download-action-btn {
        width: 100% !important;
        flex: 1 !important;
        justify-content: center !important;
        min-height: 44px !important;
        font-size: 0.9rem !important;
    }

    .player-details-section {
        padding: 14px !important;
    }

    .player-description-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    .games-legal-disclaimer {
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
        margin: 14px 0 16px 0 !important;
        line-height: 1.4 !important;
    }

    .active-tag-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }

    .clear-tag-btn {
        align-self: flex-start !important;
    }

    .download-hero-container {
        aspect-ratio: 16 / 10 !important;
        min-height: 220px !important;
    }

    .floating-notif-container {
        bottom: 14px !important;
        right: 14px !important;
        left: auto !important;
        transform: none !important;
    }

    .floating-notif-btn {
        width: 46px !important;
        height: 46px !important;
    }
}

/* Small Mobile Screens (≤480px) */
@media (max-width: 480px) {
    .games-container {
        padding: 10px 6px !important;
    }

    .games-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .player-page-wrapper {
        padding: 8px 4px !important;
    }

    .player-stage-container {
        min-height: 220px !important;
        aspect-ratio: 4 / 3 !important;
    }

    .player-info-bar {
        padding: 12px 10px !important;
    }

    .player-details-section {
        padding: 12px 10px !important;
    }

    .game-badge {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }

    .game-tag-pill {
        font-size: 0.75rem !important;
        padding: 3px 8px !important;
    }

    .floating-notif-container {
        bottom: 10px !important;
        right: 10px !important;
    }

    .floating-notif-btn {
        width: 42px !important;
        height: 42px !important;
    }
}
