/* =========================================
   LOCAL FONTS - INTER (100% Offline)
   ========================================= */
/* Variable font (weights 100-900) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('./fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('./fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Explicit discrete weights fallback */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('./fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('./fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================
   DJ ASISTENT - 2026 MINIMALIST DESIGN
   ========================================= */

:root {
    /* Font */
    --font-family: 'Inter', sans-serif;

    /* Light Mode Color Palette */
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #EFF6FF;
    --primary-subtle: #DBEAFE;
    --bg-light: #E3E9F2;
    --text-dark: #0F172A;
    --text-secondary: #64748B;
    --white: #FFFFFF;
    
    /* Accent Colors */
    --accent-teal: #D1FAE5;
    --accent-orange-light: #FFF7ED;
    --accent-orange: #FB923C;
    --accent-red: #FCA5A5;
    --play-btn-active: #22C55E;
    --play-btn-glow: rgba(34, 197, 94, 0.35);
    --stop-btn-active: #EF4444;
    --stop-btn-idle: #b0bec5;
    --danger-color: #EF4444;
    
    /* Shadows & Glossy Studio Depth (Light Mode - High Contrast & Inner Glass Rim) */
    --border-color: rgba(148, 163, 184, 0.48);
    --card-bg: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 38%, #F3F7FC 100%);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.05);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;

    /* Spacing & Layout */
    --header-height: auto;
    --min-header-height: 70px;
    --spacing-md: 16px;
    --spacing-sm: 8px;
    --spacing-lg: 24px;
}

/* --- Dark Mode Specifics --- */
:root.dark-mode,
html.dark-mode,
body.dark-mode {
    color-scheme: dark;
    --primary: #38BDF8;
    --primary-hover: #7DD3FC;
    --primary-light: rgba(56, 189, 248, 0.15);
    --primary-subtle: rgba(56, 189, 248, 0.25);
    --play-btn-active: #34D399;
    --play-btn-glow: rgba(52, 211, 153, 0.45);
    --stop-btn-active: #EF4444;
    --stop-btn-idle: #334155;
    --danger-color: #F87171;
    --bg-light: #0B0F17;
    --text-dark: #F1F5F9;
    --text-secondary: #94A3B8;
    --white: #1E293B;
    --accent-teal: #064E3B;
    --accent-orange-light: #431407;
    --accent-red: #7F1D1D;
    /* Dark Mode Shadows & Hardware Depth (Inner Rim + Top Bevel) */
    --border-color: rgba(255, 255, 255, 0.12);
    --card-bg: linear-gradient(180deg, #1E293B 0%, #141E2E 100%);
    --shadow-sm: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 3px 8px rgba(0, 0, 0, 0.45);
    --shadow-md: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.35);
    --shadow-lg: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 10px 28px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Dark mode contrast fixes (WCAG AA compliance) */
body.dark-mode .btn-primary {
    background-color: var(--primary) !important;
    color: #0B0F17 !important;
    font-weight: 700;
}
body.dark-mode .btn-primary svg {
    stroke: #0B0F17 !important;
}
body.dark-mode .skip-btn {
    background-color: rgba(30, 41, 59, 0.85);
    color: var(--text-dark);
    border-color: var(--border-color);
}

/* =========================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent;
}


/* =========================================
   TOUCH & FOCUS POLISH (No sticky highlights on tablets)
   ========================================= */
button:focus,
button:focus-visible,
.nav-btn:focus,
.nav-btn:focus-visible,
.nav-btn-subscription:focus,
.nav-btn-subscription:focus-visible,
.circle-btn:focus,
.circle-btn:focus-visible,
.control-btn:focus,
.control-btn:focus-visible,
.item-check:focus,
.item-check:focus-visible,
.menu-card:focus,
.menu-card:focus-visible,
.menu-card-full:focus,
.menu-card-full:focus-visible,
.fullscreen-btn:focus,
.fullscreen-btn:focus-visible,
#back-btn:focus,
#back-btn:focus-visible,
.schedule-item:focus,
.moment-item:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
}

.nav-btn:focus:not(:active),
.nav-btn:focus-visible:not(:active) {
    background-color: transparent !important;
    box-shadow: none !important;
}

*::-webkit-scrollbar {
    display: none;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

/* All bullet lists everywhere default to solid discs */
ul, ul li, ol ul, ol ul li, ul ul, ul ul li {
    list-style-type: disc;
}

button, input, textarea, [contenteditable], select {
    font-family: var(--font-family);
}

input, textarea, [contenteditable], select {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

button {
    font-family: var(--font-family);
}

html {
    height: 100%;
    width: 100%;
    overflow: hidden !important;
    background-color: var(--bg-light);
    color-scheme: light;
}

html.dark-mode {
    background-color: #0B0F17;
    color-scheme: dark;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

/* Utility */
.hidden {
    display: none !important;
}

/* =========================================
   APP SHELL
   ========================================= */
#app {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-lg);
    position: relative;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

#main-content {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-anchor: none;
    padding: 0 16px 105px 16px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px) + 20px);
    box-sizing: border-box;
}

/* =========================================
   HEADER
   ========================================= */
.app-header {
    background-color: var(--white);
    color: var(--text-dark);
    min-height: var(--min-header-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-sm) var(--spacing-md);
    box-shadow: var(--shadow-sm);
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .app-header {
    background-color: var(--white);
    color: var(--text-dark);
}

.app-header:not(.home-header) {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .app-header:not(.home-header) {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.app-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    order: 2;
    margin: 4px 0;
}

#logo-container {
    order: 1;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

#logo-container.hidden {
    display: none;
}

#back-btn {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-light);
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#back-btn:hover {
    background-color: var(--border-color);
}

#back-btn.hidden {
    display: none;
}

/* Home Header */
.app-header.home-header,
body.dark-mode .app-header.home-header {
    min-height: auto;
    padding: 16px 16px 0 16px;
    justify-content: center;
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

.header-logo-container {
    background: var(--card-bg, var(--white));
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
    padding: 20px 16px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.header-logo-container:hover {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10), 0 0 14px rgba(37, 99, 235, 0.14);
}

.header-logo-container:active {
    transform: scale(0.99);
}

body.dark-mode .header-logo-container {
    background: var(--card-bg, #1E293B);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .header-logo-container:hover {
    border-color: rgba(56, 189, 248, 0.50);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 22px rgba(0, 0, 0, 0.55), 0 0 14px rgba(56, 189, 248, 0.18);
}

.header-logo-img {
    max-width: 90%;
    max-height: 160px;
    object-fit: contain;
    filter: none !important;
}

.logo-img,
#version-modal img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    filter: none !important;
}

/* Logo: Nativní přepínání světlé a tmavé verze bez CSS filtrů (0% GPU zátěž) */
.logo-light { display: block; margin: 0 auto; }
.logo-dark { display: none; margin: 0 auto; }

body.dark-mode .logo-light { display: none !important; }
body.dark-mode .logo-dark { display: block !important; margin: 0 auto !important; }

/* Fullscreen Button */
.fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    z-index: 2000;
}

.fullscreen-btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* =========================================
   MENU GRID
   ========================================= */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding: 0 0 var(--spacing-md) 0;
}

/* On subpages (e.g. Hry) where menu-grid is rendered under docked client bar, add top breathing space */
.app-header:not(.home-header) ~ #main-content .menu-grid,
.games-grid {
    padding-top: 14px;
}

.menu-card, .menu-card-full {
    background: var(--card-bg, var(--white));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid var(--border-color);
}

.menu-card {
    flex-direction: column;
    aspect-ratio: 1;
    padding: var(--spacing-sm);
}

.menu-card-full {
    grid-column: 1 / -1;
    padding: 20px;
    gap: 10px;
}

.menu-card-full-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: none !important;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-card-full:hover .menu-card-full-image {
    transform: scale(1.08);
}

.menu-card-full-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.menu-card:hover, .menu-card-full:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.50);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10), 0 0 14px rgba(37, 99, 235, 0.16);
}

.menu-card:active, .menu-card-full:active {
    transform: scale(0.965);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

body.dark-mode .menu-card, body.dark-mode .menu-card-full {
    background: var(--card-bg, #1E293B);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
body.dark-mode .menu-card:hover, body.dark-mode .menu-card-full:hover {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 6px 22px rgba(0, 0, 0, 0.55), 0 0 14px rgba(56, 189, 248, 0.2);
    transform: translateY(-3px);
}
body.dark-mode .menu-card:active, body.dark-mode .menu-card-full:active {
    transform: scale(0.965);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
}
body.dark-mode .menu-card-full span {
    color: #38BDF8 !important;
}
body.dark-mode .menu-card-full:hover span {
    color: #7DD3FC !important;
}

.lock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FEE2E2;
    color: #DC2626;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    z-index: 2;
    border: 1px solid #FECACA;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

body.dark-mode .lock-badge {
    background: #450A0A;
    color: #FCA5A5;
    border-color: #7F1D1D;
}

.menu-card-locked {
    position: relative;
    border: 1px dashed var(--border-color) !important;
}

.menu-image-container {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm) auto;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-card:hover .menu-image-container {
    transform: scale(1.08);
}

.menu-image {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: none !important;
    display: block;
}

/* Light / Dark precolored image toggling (0ms instant switch, 0% GPU load) */
.menu-image-light { display: block; }
.menu-image-dark { display: none; }

body.dark-mode .menu-image-light { display: none !important; }
body.dark-mode .menu-image-dark { display: block !important; }

.menu-card:hover .menu-image {
    transform: scale(1.08);
}

.menu-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

@keyframes tileClick {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.menu-card.animate-click {
    animation: tileClick 0.3s ease-in-out forwards;
}

/* =========================================
   BOTTOM NAVIGATION
   ========================================= */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
    background: linear-gradient(180deg, #FFFFFF 0%, #F3F7FC 100%);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 12px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08), inset 0 1.5px 0 #FFFFFF;
    z-index: 1000;
    min-height: 64px;
    box-sizing: border-box;
}

body.dark-mode #bottom-nav {
    background: linear-gradient(180deg, #1E293B 0%, #111827 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Standalone navigation buttons (Domů, Informace, Harmonogram, Hodiny) - each takes 1/7 */
#bottom-nav > .nav-btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: auto;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

/* Utility Capsule for System Controls (Theme, Lock, Back) - takes 3/7, balanced spacing */
.nav-utility-capsule {
    flex: 3 1 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 48px;
    padding: 0 4px;
    margin: 0 2px;
    background: #EEF2F6;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 24px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
}

body.dark-mode .nav-utility-capsule {
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-utility-capsule .nav-btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    max-width: 48px;
    width: auto;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 21px;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.nav-utility-capsule .nav-btn:hover,
.nav-utility-capsule .nav-btn:focus {
    background: transparent !important;
    background-color: transparent !important;
}

.nav-utility-capsule .nav-btn:active {
    transform: scale(0.92);
    background: transparent !important;
    background-color: transparent !important;
}

body.dark-mode .nav-utility-capsule .nav-btn:hover,
body.dark-mode .nav-utility-capsule .nav-btn:focus,
body.dark-mode .nav-utility-capsule .nav-btn:active {
    background: transparent !important;
    background-color: transparent !important;
}

body.live-locked .nav-utility-capsule #live-lock-btn:hover,
body.live-locked .nav-utility-capsule #live-lock-btn:active {
    background: linear-gradient(180deg, #FFFFFF 0%, #E0EEFF 100%) !important;
}

body.dark-mode.live-locked .nav-utility-capsule #live-lock-btn:hover,
body.dark-mode.live-locked .nav-utility-capsule #live-lock-btn:active {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.22) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
}

/* Clock / Screen Saver navigation buttons - completely transparent on hover, focus and active */
body.view-timer-clock .nav-btn,
body.view-timer-clock .nav-btn:hover,
body.view-timer-clock .nav-btn:focus,
body.view-timer-clock .nav-btn:active,
.clock-nav .nav-btn,
.clock-nav .nav-btn:hover,
.clock-nav .nav-btn:focus,
.clock-nav .nav-btn:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

body.view-timer-clock .nav-btn:active,
.clock-nav .nav-btn:active {
    transform: scale(0.92);
}

/* Clock / Screen Saver navigation icons - pure white to match the clock display */
body.view-timer-clock img.nav-icon,
body.view-timer-clock .clock-nav img.nav-icon,
.clock-nav img.nav-icon {
    filter: brightness(0) invert(1) !important;
}

body.view-timer-clock .clock-nav svg.nav-icon,
.clock-nav svg.nav-icon {
    filter: none !important;
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

#bottom-nav.hidden {
    display: none !important;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--radius-sm);
    transition: transform 0.15s ease, background-color 0.15s ease;
    cursor: pointer;
    box-sizing: border-box;
}

@media (hover: hover) {
    .nav-btn:hover {
        color: var(--primary);
        background-color: var(--primary-light);
    }
}

.nav-btn:active {
    transform: scale(0.92);
    background-color: var(--primary-light);
}

.nav-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.2s;
    filter: none !important;
}

svg.nav-icon {
    color: var(--primary);
}

.nav-icon-light { display: block; }
.nav-icon-dark { display: none; }

body.dark-mode .nav-icon-light { display: none !important; }
body.dark-mode .nav-icon-dark { display: block !important; }

body.dark-mode svg.nav-icon {
    filter: none !important;
    color: var(--primary);
}

.nav-btn-subscription {
    background-color: var(--primary);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: none;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

@media (hover: hover) {
    .nav-btn-subscription:hover {
        background-color: var(--primary-hover);
        color: #FFFFFF !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    }
}

.nav-btn-subscription:active {
    transform: scale(0.95);
}

body.dark-mode .nav-btn-subscription {
    background-color: #38BDF8;
    color: #0B0F17 !important;
}

/* =========================================
   FLOATING MINI PLAYER BAR (Now Playing)
   ========================================= */
#mini-player-bar {
    position: fixed;
    bottom: calc(var(--bottom-nav-height, 60px) - 1px);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    height: 54px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F3F7FC 100%);
    border: none;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08), inset 0 1.5px 0 #FFFFFF;
    z-index: 1005;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    box-sizing: border-box;
}

/* When bottom-nav is hidden (e.g. clock fullscreen) */
#bottom-nav.hidden ~ #mini-player-bar,
body.view-timer-clock #mini-player-bar {
    display: none !important;
}

#mini-player-bar.mini-player-hidden {
    transform: translateY(130%);
    opacity: 0;
    pointer-events: none;
}

/* Progress track at bottom of bar (serves as dynamic separator above bottom-nav) */
.mini-player-track-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #D1D5DB;
    overflow: hidden;
    z-index: 10;
}

.mini-player-track-progress {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.2s linear;
}

.mini-player-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    height: 100%;
    gap: 8px;
}

.mini-player-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.mini-player-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
}

.mini-player-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.mini-player-meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
}

.mini-player-title-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    max-width: 100%;
}

.mini-player-title {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    line-height: 1.2;
    will-change: transform;
}

.mini-player-title.marquee {
    animation: denonScroll 8s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.mini-player-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.2;
}

.mini-player-time {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.mini-player-badge {
    display: none !important;
}

.mini-player-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.mini-player-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s ease;
    padding: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.mini-player-btn:active {
    transform: scale(0.92);
}

.mini-player-btn-main {
    background: var(--primary);
    color: #FFFFFF !important;
    width: 38px;
    height: 38px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.mini-player-btn-main:hover {
    background: var(--primary-hover);
    color: #FFFFFF !important;
}

.mini-player-btn-close {
    color: var(--text-secondary);
    opacity: 0.7;
    margin-left: 2px;
}

.mini-player-btn-close:hover {
    opacity: 1;
}

.mini-btn-stop {
    color: var(--danger-color, #EF4444);
}

/* Adjust main content padding when mini player is active */
body.has-mini-player #main-content {
    padding-bottom: 135px !important;
    padding-bottom: calc(114px + env(safe-area-inset-bottom, 0px) + 20px) !important;
}

/* Dark mode overrides for mini player */
body.dark-mode #mini-player-bar {
    background: linear-gradient(180deg, #1E293B 0%, #111827 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.10);
    border-right: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body.dark-mode .mini-player-track-line {
    background: #374151;
}

body.dark-mode .mini-player-time {
    color: var(--text-secondary);
}

body.dark-mode .mini-player-btn-close:hover {
    opacity: 1;
}

body.dark-mode .mini-btn-stop {
    color: var(--danger-color);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28), 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35), 0 2px 4px rgba(15, 23, 42, 0.12);
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.20);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

.btn-danger {
    background-color: transparent;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.btn-danger:hover {
    background-color: #FEF2F2;
}

body.dark-mode .btn-primary {
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

body.dark-mode .btn-primary:hover {
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.45);
}

body.dark-mode .btn-secondary {
    border-color: var(--border-color);
    color: var(--text-dark);
}

body.dark-mode .btn-secondary:hover {
    background-color: var(--primary-light);
}

body.dark-mode .btn-danger {
    color: var(--danger-color) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
    background-color: rgba(248, 113, 113, 0.1) !important;
}

body.dark-mode .btn-danger:hover {
    background-color: rgba(248, 113, 113, 0.2) !important;
    border-color: rgba(248, 113, 113, 0.5) !important;
}

/* Buy Subscription CTA Button */
.btn-buy-subscription {
    font-family: var(--font-family);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: #EFF6FF;
    border: 1.5px solid #2563EB;
    color: #2563EB;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.btn-buy-subscription:hover {
    background: #2563EB;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.btn-buy-subscription:active {
    transform: scale(0.97);
}

body.dark-mode .btn-buy-subscription {
    background: rgba(56, 189, 248, 0.12);
    border: 1.5px solid #38BDF8;
    color: #38BDF8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

body.dark-mode .btn-buy-subscription:hover {
    background: #38BDF8;
    color: #0B0F17 !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
}

.section-header-box {
    background-color: var(--primary);
    color: #FFFFFF !important;
    border-radius: var(--radius-sm);
}

.section-header-box h3,
.section-header-box h4,
body.dark-mode .section-header-box h3,
body.dark-mode .section-header-box h4 {
    color: #FFFFFF !important;
}

.home-actions {
    margin-top: 2rem;
    text-align: center;
}

.circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    border: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.circle-btn:hover {
    background-color: var(--primary);
    color: #FFFFFF;
    transform: scale(1.05);
}

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

.circle-btn svg {
    width: 18px;
    height: 18px;
}

.control-btn, .control-btn-small {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    border-radius: var(--radius-sm);
}

.control-btn:hover, .control-btn-small:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.control-btn-small {
    padding: 6px;
}

/* =========================================
   FORM CONTROLS
   ========================================= */
input, textarea, select {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

input::placeholder, textarea::placeholder {
    color: var(--text-secondary);
}

body.dark-mode input, body.dark-mode textarea, body.dark-mode select {
    background-color: var(--white);
    border-color: var(--border-color);
    color: var(--text-dark);
}

body.dark-mode input:focus, body.dark-mode textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.names-input {
    width: 100%;
    padding: 16px;
    font-size: 1.25rem;
    text-align: center;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: var(--text-dark);
}

.auto-expand-textarea {
    resize: none;
    overflow: hidden;
    min-height: 42px;
    line-height: 1.5;
}

/* =========================================
   ACTION CARDS & GAME BADGES (Build 177)
   ========================================= */
.action-card {
    background: var(--card-bg, var(--white));
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.50);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10), 0 0 14px rgba(37, 99, 235, 0.16);
}

.action-card:active {
    transform: scale(0.98);
}

body.dark-mode .action-card {
    background: var(--card-bg, #1E293B);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .action-card:hover {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 14px rgba(56, 189, 248, 0.18);
}

.action-card-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* 1. Pravidla hry (Modrá) */
.action-badge-rules {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #2563EB;
}
body.dark-mode .action-badge-rules {
    background: rgba(59, 130, 246, 0.22);
    border: 1px solid rgba(96, 165, 250, 0.45);
    color: #93C5FD;
}

/* 2. Tipy na úkoly (Jantarová / Zlatá) */
.action-badge-tips {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #D97706;
}
body.dark-mode .action-badge-tips {
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #FDE047;
}

/* 3. Stáhnout podklady (Smaragdová / Zelená) */
.action-badge-download {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #059669;
}
body.dark-mode .action-badge-download {
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #6EE7B7;
}

/* 4. Rozstřel (Korálová / Červená) */
.action-badge-tiebreaker {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #DC2626;
}
body.dark-mode .action-badge-tiebreaker {
    background: rgba(239, 68, 68, 0.22);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #FCA5A5;
}

/* 5. Hodiny (Modrá) */
.timer-badge-clock {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #2563EB;
}
body.dark-mode .timer-badge-clock {
    background: rgba(59, 130, 246, 0.22);
    border: 1px solid rgba(96, 165, 250, 0.45);
    color: #93C5FD;
}

/* 6. Stopky (Smaragdová / Zelená) */
.timer-badge-stopwatch {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #059669;
}
body.dark-mode .timer-badge-stopwatch {
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #6EE7B7;
}

/* 7. Odpočet (Jantarová / Zlatá) */
.timer-badge-countdown {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #D97706;
}
body.dark-mode .timer-badge-countdown {
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #FDE047;
}

/* Kvízový modál – animovaný odznak přesýpacích hodin ve stylu Odpočtu */
@keyframes quizModalHourglassPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.06);
        opacity: 0.88;
    }
}
.quiz-modal-badge {
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto 18px auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    animation: quizModalHourglassPulse 2s ease-in-out infinite;
}

/* Chevron v kartách */
.action-card-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.action-card:hover .action-card-chevron {
    opacity: 0.9;
    transform: translateX(2px);
}

/* Tipy na hry (Kategorie badge) */
.game-tip-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}
.tip-badge-icebreaker {
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(14, 165, 233, 0.28);
    color: #0284C7;
}
body.dark-mode .tip-badge-icebreaker {
    background: rgba(14, 165, 233, 0.22);
    border-color: rgba(14, 165, 233, 0.4);
    color: #38BDF8;
}

.tip-badge-dance {
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.28);
    color: #7C3AED;
}
body.dark-mode .tip-badge-dance {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.4);
    color: #A78BFA;
}

.tip-badge-newlyweds {
    background: rgba(236, 72, 153, 0.14);
    border: 1px solid rgba(236, 72, 153, 0.28);
    color: #DB2777;
}
body.dark-mode .tip-badge-newlyweds {
    background: rgba(236, 72, 153, 0.22);
    border-color: rgba(236, 72, 153, 0.4);
    color: #F472B6;
}

.tip-badge-kids {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #D97706;
}
body.dark-mode .tip-badge-kids {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.4);
    color: #FBBF24;
}

.tip-badge-general {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #059669;
}
body.dark-mode .tip-badge-general {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34D399;
}

.tip-badge-alcohol {
    background: rgba(147, 51, 234, 0.14);
    border: 1px solid rgba(147, 51, 234, 0.28);
    color: #9333EA;
}
body.dark-mode .tip-badge-alcohol {
    background: rgba(147, 51, 234, 0.22);
    border-color: rgba(147, 51, 234, 0.4);
    color: #C084FC;
}

/* Quiz Audio Player Card (CZ Kvíz & Znalostní kvíz) */
.quiz-player-card {
    background: var(--card-bg, var(--white));
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .quiz-player-card {
    background: var(--card-bg, #1E293B);
    border-color: var(--border-color);
}

.quiz-player-card:hover {
    box-shadow: var(--shadow-md);
}

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

.quiz-player-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

/* =========================================
   SCHEDULE (HARMONOGRAM)
   ========================================= */
.harmonogram-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: flex;
    align-items: center;
    background: #FFFFFF !important;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    gap: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.schedule-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.40);
}

body.dark-mode .schedule-item {
    background: var(--card-bg, #1E293B) !important;
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .schedule-item:hover {
    border-color: rgba(56, 189, 248, 0.4);
}

.schedule-item .item-input,
.schedule-item .item-name,
body.dark-mode .schedule-item .item-input,
body.dark-mode .schedule-item .item-name {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.schedule-item .item-time {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    line-height: 38px;
    padding: 0 6px;
    box-sizing: border-box;
}

.schedule-item textarea.item-name {
    display: block;
    padding: 7px 8px;
    line-height: 24px;
    min-height: 38px;
    box-sizing: border-box;
    resize: none;
    overflow-y: hidden;
}

.schedule-item.completed {
    background: #86EFAC !important;
    border: 1.5px solid #22C55E !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

.schedule-item.completed:hover {
    border-color: #22C55E !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;
}

.schedule-item.completed .item-time {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #14532D !important;
}

.schedule-item.completed .item-input,
.schedule-item.completed .item-name,
.schedule-item.completed .quiz-question-text,
.schedule-item.completed .control-btn {
    color: #14532D !important;
}

.schedule-item.mismatch {
    background: #FCA5A5 !important;
    border: 1.5px solid #EF4444 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

.schedule-item.mismatch:hover {
    border-color: #EF4444 !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;
}

.schedule-item.mismatch .item-time {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #7F1D1D !important;
}

.schedule-item.mismatch .item-input,
.schedule-item.mismatch .item-name,
.schedule-item.mismatch .quiz-question-text,
.schedule-item.mismatch .control-btn {
    color: #7F1D1D !important;
}

body.dark-mode .schedule-item.completed {
    background: #166534 !important;
    border: 1.5px solid #22C55E !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .schedule-item.completed:hover {
    border-color: #22C55E !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
}

body.dark-mode .schedule-item.completed .item-time {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #F0FDF4 !important;
}

body.dark-mode .schedule-item.completed .item-input,
body.dark-mode .schedule-item.completed .item-name,
body.dark-mode .schedule-item.completed .quiz-question-text,
body.dark-mode .schedule-item.completed .control-btn {
    color: #F0FDF4 !important;
}

body.dark-mode .schedule-item.mismatch {
    background: #7F1D1D !important;
    border: 1.5px solid #EF4444 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .schedule-item.mismatch:hover {
    border-color: #EF4444 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
}

body.dark-mode .schedule-item.mismatch .item-time {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #FEF2F2 !important;
}

body.dark-mode .schedule-item.mismatch .item-input,
body.dark-mode .schedule-item.mismatch .item-name,
body.dark-mode .schedule-item.mismatch .quiz-question-text,
body.dark-mode .schedule-item.mismatch .control-btn {
    color: #FEF2F2 !important;
}

.schedule-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.item-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    flex: 1;
    font-weight: 500;
}

.item-input {
    border: none;
    background: transparent;
    font-family: inherit;
    padding: 4px 8px;
    font-size: 1rem;
    width: 100%;
    border-radius: 4px;
}

.item-input:focus {
    background-color: var(--bg-light);
    box-shadow: none;
}

.item-time {
    width: 100px;
    min-width: 100px;
    flex-shrink: 0;
    text-align: center;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 8px 6px;
    box-sizing: border-box;
    background-color: var(--bg-light);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.item-time::-webkit-calendar-picker-indicator,
.item-time::-webkit-inner-spin-button,
.item-time::-webkit-clear-button {
    display: none !important;
    -webkit-appearance: none !important;
}

.item-check {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary);
    margin: 0;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.item-check:focus,
.item-check:focus-visible,
.item-check:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
}

.schedule-actions {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
}

/* =========================================
   ROK S NOVOMANŽELI CARDS
   ========================================= */
.rok-card {
    display: block; 
    width: 100%;
    margin-bottom: 0; 
    border-radius: var(--radius-md); 
    border: 1px solid var(--border-color); 
    background: #FFFFFF !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.2s ease;
}

body.dark-mode .rok-card {
    background: var(--card-bg, #1E293B) !important;
    border-color: var(--border-color);
}

.rok-card-header {
    background-color: var(--primary); 
    padding: 12px 16px; 
    width: 100%; 
    margin: 0;
    box-sizing: border-box;
}

.rok-card-header h4 {
    margin: 0; 
    font-size: 1.05rem; 
    color: #FFFFFF !important; 
    font-weight: 600; 
    text-align: center;
    letter-spacing: 0.5px;
}

.rok-card-body {
    padding: 16px 14px; 
    width: 100%; 
    background-color: var(--white); 
    box-sizing: border-box;
    transition: background-color 0.2s;
}

.rok-card.completed {
    border-color: #4ADE80 !important;
}

.rok-card.completed .rok-card-body {
    background-color: #86EFAC !important;
}

.rok-card.completed .rok-card-body textarea {
    color: #14532D !important;
}

body.dark-mode .rok-card.completed {
    border-color: #22C55E !important;
}

body.dark-mode .rok-card.completed .rok-card-body {
    background-color: #166534 !important;
}

body.dark-mode .rok-card.completed .rok-card-body textarea {
    color: #BBF7D0 !important;
}

/* =========================================
   KRÁLOVSKÝ KOČÁR
   ========================================= */
.kocar-card {
    background: #FFFFFF !important;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 0;
    overflow: hidden;
}

body.dark-mode .kocar-card {
    background: var(--card-bg, #1E293B) !important;
    border-color: var(--border-color);
}

.kocar-card h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-subtle);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.kocar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.kocar-table th {
    background-color: var(--primary);
    color: #FFFFFF !important;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
}

.kocar-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.kocar-table tr.highlight-row {
    background-color: var(--primary-light);
}

body.dark-mode .kocar-table tr.highlight-row {
    background-color: var(--primary-subtle);
}

.kocar-story {
    background: #FFFFFF !important;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-top: 0;
    line-height: 1.8;
    color: var(--text-dark);
}

body.dark-mode .kocar-story {
    background: var(--card-bg, #1E293B) !important;
    border-color: var(--border-color);
}

.kocar-story h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-subtle);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.kocar-story p {
    margin-bottom: 18px;
    color: var(--text-dark);
    font-size: 1rem;
}

.kocar-story .keyword {
    color: #EF4444;
    font-weight: bold;
}

/* =========================================
   CEREMONY & MUSIC
   ========================================= */
.ceremony-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 14px;
}

.ceremony-container > div:first-child > .section-title {
    margin-top: 0;
}

.section-header-box h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 32px;
    margin-bottom: 16px;
    background: transparent;
    display: flex;
    align-items: center;
}

body.dark-mode .section-title {
    color: var(--text-dark);
    background: transparent;
    box-shadow: none;
}

.moment-item,
.playlist-container {
    display: flex;
    flex-direction: column;
    background: #FFFFFF !important;
    padding: 0;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border-color) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    scroll-margin-top: 14px;
}

.moment-header,
.playlist-header {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 10px 16px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

.moment-item:hover, .playlist-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

/* Ensure inner rows are transparent so card-bg glossy gradient shines through */
.moment-header,
.playlist-header,
.moment-item > div,
.playlist-container > div {
    background: transparent !important;
    background-color: transparent !important;
}

@keyframes item-nav-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
    }
    40% {
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.45), var(--shadow-lg);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@keyframes item-nav-pulse-dark {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.65);
    }
    40% {
        box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.65), 0 0 24px rgba(56, 189, 248, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.highlight-navigated {
    animation: item-nav-pulse 1.4s ease-out;
}

body.dark-mode .highlight-navigated {
    animation: item-nav-pulse-dark 1.4s ease-out;
}

.badge-icon-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.22);
    color: #10B981;
    font-weight: 700;
    font-size: 11px;
    margin-right: 8px;
    flex-shrink: 0;
}

.badge-icon-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.2);
    color: #38BDF8;
    font-weight: 700;
    font-size: 11px;
    margin-right: 8px;
    flex-shrink: 0;
}

.badge-icon-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    font-weight: 700;
    font-size: 11px;
    margin-right: 8px;
    flex-shrink: 0;
}

body.dark-mode .moment-item, body.dark-mode .playlist-container {
    background: var(--card-bg, #1E293B) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
}

body.dark-mode .moment-item:hover, body.dark-mode .playlist-container:hover {
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: var(--shadow-md) !important;
}

.moment-main-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.moment-left-col {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.moment-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.moment-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.moment-details-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-left: 2px;
}

.moment-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
    border: none;
    background: transparent;
    padding: 0;
}

.moment-actions,
.playlist-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.moment-actions .btn-secondary,
.playlist-actions .btn-secondary,
.moment-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    min-height: 36px;
}

.moment-actions .btn-action-icon,
.playlist-actions .btn-action-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.moment-actions .btn-action-icon:hover,
.playlist-actions .btn-action-icon:hover {
    transform: scale(1.06);
}

.moment-actions .control-btn,
.playlist-actions .control-btn {
    padding: 6px 8px;
    min-height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.moment-actions .control-btn:hover,
.playlist-actions .control-btn:hover {
    transform: scale(1.12);
}

.file-status {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.file-status.loaded {
    background-color: var(--primary-subtle);
    color: var(--primary-hover);
    border-color: var(--primary-subtle);
}

body.dark-mode .file-status {
    background-color: var(--bg-light);
    color: var(--text-secondary);
    border: none;
}

body.dark-mode .file-status.loaded {
    background-color: var(--primary-subtle);
    color: var(--primary-hover);
}

.fade-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: var(--bg-light);
    border-radius: 4px;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 4px;
}

.time-display {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.progress-details {
    padding: 0 4px 4px 4px;
}

/* Playlist Specific */
.playlist-files-list {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    min-height: 20px;
    margin-bottom: 12px;
}

.playlist-name-input:focus {
    border-color: var(--primary);
    background: var(--white);
}

.playlist-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.crossfade-input {
    width: 50px;
    padding: 6px;
    text-align: center;
}

.playlist-footer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.playlist-files {
    list-style: none;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.02);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
}

body.dark-mode .playlist-files {
    background: rgba(15, 23, 42, 0.55);
    border-color: var(--border-color);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.playlist-file-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    transition: background-color 0.2s;
}

.playlist-file-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.playlist-file-item:hover {
    background-color: var(--bg-light);
}

.playlist-file-item.active-track {
    background-color: var(--primary-light);
    color: var(--primary-hover);
    font-weight: 600;
}

body.dark-mode .playlist-file-item {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

body.dark-mode .playlist-file-item.active-track {
    background-color: var(--primary-light);
    color: var(--primary);
}

#client-dashboard-container {
    padding: 12px 16px 12px 16px;
    width: 100%;
    background: var(--bg-light);
    z-index: 10;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* On Home screen: client info bar container is completely hidden (no redundant display, no empty gap) */
.home-header + #client-dashboard-container,
#client-dashboard-container.home-client-container {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
}

.client-dashboard {
    background: var(--card-bg, var(--white)) !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    margin-top: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.client-dashboard:hover {
    border-color: rgba(37, 99, 235, 0.45) !important;
}

.client-dashboard select {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 28px 10px 8px !important;
    color: var(--text-dark) !important;
}

body.dark-mode .client-dashboard {
    background: var(--card-bg, #1E293B) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
}

body.dark-mode .client-dashboard:hover {
    border-color: rgba(56, 189, 248, 0.50) !important;
}

body.dark-mode .client-dashboard select {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-dark) !important;
}

.client-info-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--card-bg, var(--white));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.client-info-label {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.client-info-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

body.dark-mode .client-info-bar {
    background: var(--card-bg, #1E293B);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .client-info-label {
    color: var(--primary);
}

body.dark-mode .client-info-name {
    color: var(--text-dark);
}

/* Subpage docked client info bar (under top header, 0 border radius, thin light-gray lines) */
.app-header:not(.home-header) + #client-dashboard-container,
#client-dashboard-container.subpage-client-container {
    display: block !important;
    padding: 0;
    background: var(--white);
    margin-bottom: 0 !important;
    margin-top: -1px;
    position: relative;
    z-index: 10;
}

.app-header:not(.home-header) + #client-dashboard-container .client-info-bar,
#client-dashboard-container.subpage-client-container .client-info-bar {
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    padding: 8px 16px;
    background: var(--card-bg, var(--white));
    width: 100%;
    box-sizing: border-box;
}

body.dark-mode .app-header:not(.home-header) + #client-dashboard-container,
body.dark-mode #client-dashboard-container.subpage-client-container {
    background: transparent;
}

body.dark-mode .app-header:not(.home-header) + #client-dashboard-container .client-info-bar,
body.dark-mode #client-dashboard-container.subpage-client-container .client-info-bar {
    background: var(--card-bg, #1E293B);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.placeholder-view {
    text-align: center;
    padding-top: 3rem;
    color: var(--text-secondary);
}

/* =========================================
   MODALS
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: var(--spacing-md);
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Priority z-index for Alert, Confirm, and Input dialogs — always display on top of all other modals */
#confirm-modal,
#input-modal {
    z-index: 10000 !important;
}

#ai-scan-modal {
    z-index: 2500;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--card-bg, var(--white));
    padding: 28px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    transform: scale(1) translateY(0);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.modal-overlay.hidden .modal-content {
    transform: scale(0.95) translateY(10px);
}

body.dark-mode .modal-content {
    background: var(--card-bg, #1E293B);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.modal-content h3 {
    margin-bottom: 16px;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* =========================================
   CHANGELOG & WHAT'S NEW MODAL
   ========================================= */
.changelog-scroll-area {
    max-height: 48vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
    text-align: left;
}

.changelog-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.changelog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.changelog-build-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
}

.changelog-category-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 12px;
}

.changelog-category-badge.feature {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.changelog-category-badge.design {
    background: rgba(168, 85, 247, 0.15);
    color: #A855F7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.changelog-category-badge.performance {
    background: rgba(52, 211, 153, 0.15);
    color: #10B981;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.changelog-category-badge.audio {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.changelog-category-badge.core {
    background: rgba(100, 116, 139, 0.15);
    color: #64748B;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.changelog-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px 0;
}

.changelog-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.changelog-list li {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.changelog-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* Modal close button (top-right X) */
.modal-close-x-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.modal-close-x-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
}

body.dark-mode .modal-close-x-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    color: var(--text-dark);
}

/* Info cards in version modal */
.version-info-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 13px 15px;
    margin-bottom: 11px;
    text-align: left;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.dark-mode .version-info-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.10);
}

.version-license-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.version-card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.version-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.version-card-status {
    display: flex;
    align-items: center;
    gap: 7px;
}

.version-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.version-status-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.version-card-desc {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.45;
}

.version-card-btn {
    padding: 7px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.22);
    width: 104px;
    min-width: 104px;
    justify-content: center;
    text-align: center;
}

.version-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.version-tool-btn {
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    text-decoration: none;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    min-width: 0;
    width: 100%;
}

@media (max-width: 520px) {
    .version-modal-card {
        padding: 22px 16px 18px !important;
    }
    .version-tools-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

body.dark-mode .changelog-card {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
}

.version-tabs {
    display: flex;
    gap: 6px;
    margin: 12px 0 16px 0;
    background: var(--bg-light);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.dark-mode .version-tabs {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.10);
}

.version-tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.version-tab-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

body.dark-mode .version-tab-btn {
    color: var(--text-secondary);
}

body.dark-mode .version-tab-btn.active {
    background: rgba(56, 189, 248, 0.18);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Secondary & Action buttons inside modals (Version modal & What's new modal) */
#version-modal .btn-secondary,
#whats-new-modal .btn-secondary {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.10);
    color: var(--text-dark);
    transition: all 0.2s ease;
}

#version-modal .btn-secondary:hover,
#whats-new-modal .btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.16);
}

body.dark-mode #version-modal .btn-secondary,
body.dark-mode #whats-new-modal .btn-secondary {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-dark);
}

body.dark-mode #version-modal .btn-secondary:hover,
body.dark-mode #whats-new-modal .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

#version-modal-license-btn {
    transition: all 0.2s ease;
}

/* --- Info Modal & Game Rules Typography --- */
#info-modal .modal-title,
#info-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

#info-modal-text,
.rules-content {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-dark);
}

#info-modal-text p,
.rules-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 14px;
}

#info-modal-text p:last-child,
.rules-content p:last-child {
    margin-bottom: 0;
}

#info-modal-text h3,
#info-modal-text h4,
.rules-content h3,
.rules-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0 10px 0;
}

#info-modal-text h3:first-child,
#info-modal-text h4:first-child,
.rules-content h3:first-child,
.rules-content h4:first-child {
    margin-top: 4px;
}

#info-modal-text {
    padding-left: 6px;
    padding-right: 6px;
}

#info-modal-text ul,
.rules-content ul {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-dark);
    padding-left: 28px;
    margin: 0 0 16px 0;
    list-style-type: disc !important;
}

#info-modal-text ul li,
.rules-content ul li {
    list-style-type: disc !important;
}

#info-modal-text ol,
.rules-content ol {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-dark);
    padding-left: 38px;
    margin: 0 0 16px 0;
}

#info-modal-text ul:last-child,
#info-modal-text ol:last-child,
.rules-content ul:last-child,
.rules-content ol:last-child {
    margin-bottom: 0;
}

#info-modal-text li,
.rules-content li {
    margin-bottom: 6px;
    color: var(--text-dark);
}

#info-modal-text li:last-child,
.rules-content li:last-child {
    margin-bottom: 0;
}

#info-modal-text li > ul,
.rules-content li > ul {
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 24px;
    list-style-type: disc !important;
}

#info-modal-text li > ul li,
.rules-content li > ul li {
    list-style-type: disc !important;
}

#info-modal-text li > ol,
.rules-content li > ol {
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 28px;
}

#info-modal-text strong,
#info-modal-text b,
.rules-content strong,
.rules-content b {
    color: var(--text-dark);
    font-weight: 600;
}

#info-modal-text hr,
.rules-content hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.setting-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.setting-group input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
}

/* =========================================
   CUSTOM CHECKBOX
   ========================================= */
.checkbox-wrapper-12 {
    position: relative;
}

.checkbox-wrapper-12 > .cbx {
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-wrapper-12 > .cbx input {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: none;
    appearance: none;
    cursor: pointer;
    z-index: 10;
    margin: 0;
    opacity: 0;
}

.checkbox-wrapper-12 > .cbx label {
    width: 24px;
    height: 24px;
    background: none;
    border-radius: var(--radius-sm);
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
}

.checkbox-wrapper-12 > .cbx svg {
    position: absolute;
    top: 5px;
    left: 4px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 19;
    stroke-dashoffset: 19;
    transition: stroke-dashoffset 0.3s ease;
    transition-delay: 0.1s;
    transform: scale(0.8);
}

.checkbox-wrapper-12 > .cbx input:checked + label {
    animation: splash-12 0.6s ease forwards;
}

.checkbox-wrapper-12 > .cbx input:checked + label + svg {
    stroke-dashoffset: 0;
}

@keyframes splash-12 {
    40% {
        background: var(--primary-subtle);
        box-shadow: 0 -18px 0 -8px var(--primary-subtle), 16px -8px 0 -8px var(--primary-subtle), 16px 8px 0 -8px var(--primary-subtle), 0 18px 0 -8px var(--primary-subtle), -16px 8px 0 -8px var(--primary-subtle), -16px -8px 0 -8px var(--primary-subtle);
    }
    100% {
        background: var(--primary-subtle);
        box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
    }
}

/* =========================================
   SAMPLER
   ========================================= */
.sampler-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 16px 0 20px 0;
    box-sizing: border-box;
}

.sampler-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px;
    width: 100%;
    margin-bottom: 0;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .sampler-container {
        padding: 20px 0 24px 0;
    }
    .sampler-grid {
        gap: 18px;
    }
}

.sampler-pad-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

/* Sampler Pad - Clean Studio (Constant Blue Border) */
.sampler-pad {
    font-family: var(--font-family);
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 110px;
    border-radius: var(--radius-md);
    background: var(--card-bg, var(--white)) !important;
    border: 2px solid rgba(37, 99, 235, 0.45);
    box-shadow: var(--shadow-sm) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 8px;
    box-sizing: border-box;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, background 0.18s ease, border-color 0.18s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none !important;
    touch-action: manipulation;
    overflow: hidden;
    outline: none;
}

body.dark-mode .sampler-pad {
    background: var(--card-bg, #1E293B) !important;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: var(--shadow-sm) !important;
}

.sampler-pad:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
    border-color: var(--primary);
}

body.dark-mode .sampler-pad:hover {
    border-color: #38BDF8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 14px rgba(56, 189, 248, 0.3) !important;
}

.sampler-pad:active,
.sampler-pad.holding {
    transform: scale(0.96) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Direct Pad Icon (No Circular Badge - Variant 2) */
.pad-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
    flex-shrink: 0;
}

body.dark-mode .pad-icon {
    color: #60A5FA;
}

.sampler-pad:hover .pad-icon {
    transform: scale(1.12);
}

/* Empty pad state (clean dashed outline inviting upload) */
.sampler-pad.is-empty {
    border-style: dashed;
    border-width: 1.5px;
    border-color: var(--border-color);
    background: rgba(0, 0, 0, 0.02) !important;
    color: var(--text-secondary);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

body.dark-mode .sampler-pad.is-empty {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .sampler-pad.is-empty .pad-empty-icon {
    color: #94A3B8;
    opacity: 0.85;
}

.sampler-pad.is-empty:hover {
    border-color: var(--primary);
    color: var(--primary);
}

body.dark-mode .sampler-pad.is-empty:hover {
    border-color: #60A5FA;
    color: #60A5FA;
}

.pad-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0.65;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease, opacity 0.18s ease;
    margin-bottom: 2px;
}

.sampler-pad.is-empty:hover .pad-empty-icon {
    color: var(--primary);
    opacity: 1;
    transform: scale(1.12);
}

body.dark-mode .sampler-pad.is-empty:hover .pad-empty-icon {
    color: #60A5FA;
    opacity: 1;
}

/* Playing state: Green illuminated pad surface, green icon & pulsing border */
@keyframes samplerPadPulseLight {
    0%, 100% {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 4px 16px rgba(22, 163, 74, 0.28), 0 0 0 0 rgba(34, 197, 94, 0.35);
    }
    50% {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 6px 22px rgba(22, 163, 74, 0.42), 0 0 0 4px rgba(34, 197, 94, 0.16);
    }
}

@keyframes samplerPadPulseDark {
    0%, 100% {
        box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35), 0 4px 18px rgba(16, 185, 129, 0.35), 0 0 0 0 rgba(52, 211, 153, 0.35);
    }
    50% {
        box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.5), 0 6px 24px rgba(16, 185, 129, 0.52), 0 0 0 4px rgba(52, 211, 153, 0.18);
    }
}

.sampler-pad.playing {
    background: linear-gradient(180deg, #DCFCE7 0%, #BBF7D0 100%) !important;
    border: 2.5px solid #16A34A !important;
    animation: samplerPadPulseLight 1.5s infinite ease-in-out;
}

body.dark-mode .sampler-pad.playing {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.32) 0%, rgba(6, 78, 59, 0.75) 100%) !important;
    border: 2.5px solid #34D399 !important;
    animation: samplerPadPulseDark 1.5s infinite ease-in-out;
}

.sampler-pad.playing:active,
.sampler-pad.playing.holding {
    transform: scale(0.96) !important;
}

.sampler-pad.playing .pad-icon {
    color: #15803D !important;
    transform: scale(1.1);
}

body.dark-mode .sampler-pad.playing .pad-icon {
    color: #34D399 !important;
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.45));
    transform: scale(1.1);
}

.sampler-pad.playing .pad-title {
    color: #064E3B !important;
}

body.dark-mode .sampler-pad.playing .pad-title {
    color: #ECFDF5 !important;
}

/* Pad Content */
.pad-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    gap: 8px;
    pointer-events: none;
}

.pad-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.25;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.18s ease;
    max-width: 100%;
    padding: 0 4px;
}

.pad-empty-content {
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.18s ease;
    pointer-events: none;
}

.sampler-pad.is-empty:hover .pad-empty-content {
    color: var(--primary);
}

/* Sampler Icon Picker Modal Grid */
.sampler-icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px 2px;
}

.sampler-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 6px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-dark);
    gap: 6px;
    outline: none;
}

body.dark-mode .sampler-icon-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
    color: var(--text-dark);
}

.sampler-icon-btn svg {
    color: var(--primary);
    transition: transform 0.15s ease, color 0.15s ease;
}

body.dark-mode .sampler-icon-btn svg {
    color: #60A5FA;
}

.sampler-icon-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.sampler-icon-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF !important;
}

.sampler-icon-btn.selected svg {
    color: #FFFFFF !important;
}

.sampler-icon-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

@media (max-width: 600px) {
    .sampler-container {
        padding: 14px 0 18px 0;
    }
    .sampler-grid {
        gap: 10px;
    }
    .sampler-pad {
        min-height: 90px;
        padding: 8px 4px;
    }
    .pad-icon svg {
        width: 32px !important;
        height: 32px !important;
    }
    .pad-empty-icon svg {
        width: 24px !important;
        height: 24px !important;
    }
    .pad-title {
        font-size: 0.82rem;
        line-height: 1.2;
    }
    .pad-content {
        gap: 5px;
    }
    .pad-empty-content {
        font-size: 0.8rem;
    }
    .sampler-icon-picker-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

/* =========================================
   INTRO VIDEO OVERLAY
   ========================================= */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out, background-color 0.5s ease;
}

.intro-overlay.playing {
    background-color: var(--bg-light);
}

.intro-overlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.intro-video.active {
    display: block;
}

.skip-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 100000;
    box-shadow: var(--shadow-sm);
}

.skip-btn:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.skip-btn:active {
    transform: translateY(0) scale(0.95);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary);
    border: none;
    color: #FFFFFF;
    padding: 16px 48px;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transition: all 0.3s ease;
    z-index: 100000;
}

.play-btn:hover {
    background-color: var(--primary-hover);
    transform: translate(-50%, -50%) scale(1.05);
}

.play-btn.hidden {
    display: none;
}

/* =========================================
   CLIENT SHEET
   ========================================= */
.client-sheet-container {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.client-sheet-main-title {
    background: var(--white);
    color: var(--text-dark);
    text-align: center;
    padding: 20px;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.client-sheet-section {
    margin: 14px 0 20px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
}

/* =========================================
   INFORMACE ZE SCHŮZKY (DYNAMICKÉ SEKCE & KARTY)
   ========================================= */
.info-sheet-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.info-sections-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-section-card {
    background: #FFFFFF !important;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

body.dark-mode .info-section-card {
    background: var(--card-bg, #1E293B) !important;
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.info-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}

body.dark-mode .info-section-header {
    border-bottom-color: rgba(56, 189, 248, 0.25);
}

.info-section-title {
    font-family: var(--font-family);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    border: none !important;
    background: transparent !important;
    outline: none;
    width: 100%;
    padding: 2px 0;
    box-shadow: none !important;
}

body.dark-mode .info-section-title {
    color: var(--primary) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.info-section-del-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.info-section-del-btn:hover {
    transform: scale(1.06);
}

.info-section-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    border-bottom: none;
}

.info-item-label {
    width: 240px;
    min-width: 160px;
    max-width: 300px;
    flex: 0 0 240px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    outline: none;
    resize: none;
    overflow: hidden;
    line-height: 1.45;
    box-sizing: border-box;
    min-height: 38px;
    word-break: break-word;
    white-space: pre-wrap;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.info-item-label:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-subtle);
}

body.dark-mode .info-item-label {
    background-color: #0F172A !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #F1F5F9 !important;
}

body.dark-mode .info-item-label:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

body.dark-mode .info-item-label::placeholder {
    color: #64748B !important;
}

.info-item-value {
    flex: 1;
    min-width: 0;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
    outline: none;
    resize: none;
    overflow: hidden;
    line-height: 1.45;
    box-sizing: border-box;
    min-height: 38px;
    word-break: break-word;
    white-space: pre-wrap;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.info-item-value:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-subtle);
}

body.dark-mode .info-item-value {
    background-color: #1E293B !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #F8FAFC !important;
}

body.dark-mode .info-item-value:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

body.dark-mode .info-item-value::placeholder {
    color: #64748B !important;
}

.info-item-del-btn {
    width: 36px;
    height: 38px;
    min-width: 36px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--danger-color, #EF4444);
    opacity: 0.7;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.info-item-del-btn:hover {
    opacity: 1;
    background-color: rgba(239, 68, 68, 0.1);
}

.info-section-footer {
    margin-top: 10px;
    padding-top: 4px;
}

.info-add-item-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-family);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.info-add-item-btn:hover {
    border-color: var(--primary);
    color: var(--primary-hover);
    background: var(--primary-light);
}

body.dark-mode .info-add-item-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--primary);
}

body.dark-mode .info-add-item-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--primary);
    color: var(--primary-hover);
}

/* =========================================
   DJ PLAYER
   ========================================= */
.dj-player-wrapper {
    padding: var(--spacing-sm);
    max-width: 100%;
}

.dj-player-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dj-deck-card {
    background: var(--card-bg, var(--white));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

body.dark-mode .dj-deck-card {
    background: var(--card-bg, #1E293B);
    border-color: var(--border-color);
}

.dj-deck-card:hover {
    box-shadow: var(--shadow-md);
}

.dj-deck-a {
    border-top: 3.5px solid var(--primary) !important;
    box-shadow: inset 0 1px 0 rgba(37, 99, 235, 0.35), var(--shadow-sm);
}

body.dark-mode .dj-deck-a {
    border-top: 3.5px solid #38BDF8 !important;
    box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.45), var(--shadow-sm) !important;
}

.dj-deck-b {
    border-top: 3.5px solid var(--accent-orange) !important;
    box-shadow: inset 0 1px 0 rgba(249, 115, 22, 0.35), var(--shadow-sm);
}

body.dark-mode .dj-deck-b {
    border-top: 3.5px solid #FB923C !important;
    box-shadow: inset 0 1px 0 rgba(251, 146, 60, 0.45), var(--shadow-sm) !important;
}

.dj-deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dj-deck-badge {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.dj-deck-a .dj-deck-badge {
    background: var(--primary-subtle);
    color: var(--primary-hover);
}

.dj-deck-b .dj-deck-badge {
    background: var(--accent-orange-light);
    color: var(--accent-orange);
}

body.dark-mode .dj-deck-b .dj-deck-badge {
    color: var(--accent-orange);
}

.dj-load-btn {
    font-family: var(--font-family);
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-height: 34px;
}

.dj-load-btn:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
}

.dj-track-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    min-width: 0;
    overflow: hidden;
}

body.dark-mode .dj-track-info {
    background: var(--white);
}

.dj-track-icon {
    font-size: 1.25rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dj-track-title-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.dj-track-title {
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    white-space: nowrap;
    will-change: transform;
}

.dj-track-title.marquee {
    animation: denonScroll 8s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

@keyframes denonScroll {
    0%, 20% {
        transform: translateX(0);
    }
    60%, 80% {
        transform: translateX(var(--scroll-dist, 0px));
    }
    100% {
        transform: translateX(0);
    }
}

.dj-timeline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dj-time-display {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: right;
    font-family: monospace;
}

.dj-seek-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 24px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    margin: 0;
    padding: 0;
    --seek-percent: 0%;
}

.dj-seek-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--seek-percent, 0%), var(--border-color) var(--seek-percent, 0%), var(--border-color) 100%);
    border-radius: 3px;
    border: none;
}

body.dark-mode .dj-seek-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--seek-percent, 0%), rgba(255, 255, 255, 0.2) var(--seek-percent, 0%), rgba(255, 255, 255, 0.2) 100%);
}

.dj-seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #FFFFFF;
    box-shadow: var(--shadow-sm);
    margin-top: -6px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.dj-seek-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.dj-deck-controls {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.dj-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.dj-play-btn svg {
    display: block;
}

.dj-play-btn:not(.playing) svg {
    transform: translateX(2px);
}

.dj-play-btn.playing svg {
    transform: translateX(0);
}

.dj-deck-b .dj-play-btn {
    background: var(--accent-orange);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.35);
}

.dj-play-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.dj-deck-b .dj-play-btn:hover {
    box-shadow: 0 6px 18px rgba(251, 146, 60, 0.45);
}

.dj-play-btn:active {
    transform: scale(0.95);
}

/* MIXER CARD */
.dj-mix-card {
    background: var(--card-bg, var(--white));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    grid-column: 1 / -1;
    grid-row: 2;
}

body.dark-mode .dj-mix-card {
    background: var(--card-bg, #1E293B);
    border-color: var(--border-color);
}

.dj-mix-title {
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.dj-crossfader-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-light);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

body.dark-mode .dj-crossfader-container {
    background: var(--white);
    border-color: var(--border-color);
}

.dj-xfader-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.dj-xfader-btn {
    font-family: var(--font-family);
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
}

.dj-xfader-btn-b {
    color: var(--accent-orange);
    border-color: rgba(251, 146, 60, 0.4);
}

body.dark-mode .dj-xfader-btn {
    border-color: rgba(56, 189, 248, 0.6);
}

body.dark-mode .dj-xfader-btn-b {
    color: var(--accent-orange);
    border-color: rgba(251, 146, 60, 0.6);
}

.dj-xfader-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.dj-xfader-btn-b:hover {
    background: rgba(251, 146, 60, 0.15);
    border-color: var(--accent-orange);
}

body.dark-mode .dj-xfader-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

body.dark-mode .dj-xfader-btn-b:hover {
    background: rgba(251, 146, 60, 0.18);
    border-color: var(--accent-orange);
}

.dj-xfader-btn:active {
    transform: scale(0.97);
}

.dj-crossfader-scale {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 8px;
}

.dj-scale-track-wrapper {
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
}

.dj-scale-lines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.dj-scale-lines .tick.center-tick {
    width: 3px;
    height: 52px;
    background-color: #9CA3AF;
    border-radius: 2px;
}

body.dark-mode .dj-scale-lines .tick.center-tick {
    background-color: #FFFFFF !important;
    box-shadow: none !important;
}

.dj-slider-horiz,
body.dark-mode .dj-slider-horiz {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 44px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.dj-slider-horiz::-webkit-slider-runnable-track,
body.dark-mode .dj-slider-horiz::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: var(--border-color) !important;
    background-color: var(--border-color) !important;
    border-radius: 3px;
    border: none !important;
}

body.dark-mode .dj-slider-horiz::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.dj-slider-horiz::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: #374151;
    border: 2px solid #FFFFFF;
    box-shadow: var(--shadow-md);
    margin-top: -18px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.dj-slider-horiz::-webkit-slider-thumb:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.dj-slider-horiz::-webkit-slider-thumb:active {
    transform: scale(0.95);
}

body.dark-mode .dj-slider-horiz::-webkit-slider-thumb {
    background: var(--primary);
    border: 2px solid #FFFFFF;
    box-shadow: var(--shadow-md);
}

/* =========================================
   TIMER & CLOCK MODULE (RESPONSIVE 2026)
   ========================================= */
.timer-menu-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 0;
}

.timer-menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) and (orientation: landscape), (min-width: 768px) {
    .timer-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.timer-menu-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
}

.timer-menu-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.timer-menu-card .timer-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.timer-menu-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
}

.timer-menu-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Stopwatches Container & Grid */
.stopwatch-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stopwatch-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) and (orientation: landscape), (min-width: 900px) {
    .stopwatch-grid {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    }
}

.stopwatch-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    position: relative;
    text-align: center;
    transition: all 0.2s ease;
}

.stopwatch-display {
    font-size: clamp(2.6rem, 8vw, 4.2rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text-dark);
    margin: 12px 0 20px 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* Countdown Container */
.countdown-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 10px 0;
}

.countdown-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 30px 20px;
    text-align: center;
}

.countdown-display {
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text-dark);
    margin: 10px 0 25px 0;
    line-height: 1;
    letter-spacing: -1px;
}

/* Clock Fullscreen Responsive Layout */
.fullscreen-clock-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    color: #FFFFFF;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.fullscreen-clock-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px 80px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.fullscreen-clock-header {
    margin-bottom: 20px;
    cursor: pointer;
}

.fullscreen-clock-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
}

.fullscreen-clock-header p {
    margin: 6px 0 0 0;
    color: #9CA3AF;
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
}

.fullscreen-clock-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.clock-huge-display {
    font-size: clamp(3.8rem, 14vw, 7.5rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #FFFFFF;
    margin: 10px 0;
    letter-spacing: -2px;
}

.fullscreen-clock-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 1050px;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid #222222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 30px;
    z-index: 1000;
    height: 60px;
    box-sizing: border-box;
}

/* Landscape Split Grid for Clock */
@media (min-width: 768px) and (orientation: landscape), (min-width: 992px) {
    .fullscreen-clock-body {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 40px;
        align-items: start;
    }
}

.timer-display, #timer-display, #stopwatch-display, [id^="sw-display-"] {
    color: var(--text-dark) !important;
}

body.dark-mode .timer-display,
body.dark-mode #timer-display,
body.dark-mode #stopwatch-display,
body.dark-mode [id^="sw-display-"] {
    color: #FFFFFF !important;
}

/* Notes */
#notes-area {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    width: 100%;
    font-family: inherit;
    transition: all 0.2s ease;
}
#notes-area:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}
body.dark-mode #notes-area {
    background-color: var(--white);
    border-color: var(--border-color);
}

/* =========================================
   MEDIA QUERIES – MOBILE, TABLET & DESKTOP
   ========================================= */

/* --- TABLET & DESKTOP (>= 600px) --- */
@media (min-width: 600px) {
    #bottom-nav {
        gap: 0;
        padding: 8px 16px;
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
        min-height: 64px;
    }
    #bottom-nav > .nav-btn {
        height: 44px;
    }
    .nav-utility-capsule {
        height: 48px;
    }
    .nav-utility-capsule .nav-btn {
        height: 42px;
        max-width: 48px;
    }
    .nav-icon {
        width: 28px;
        height: 28px;
    }
    .nav-btn-subscription {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    .sampler-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
    }
    .dj-player-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .dj-deck-a { grid-column: 1; grid-row: 1; }
    .dj-deck-b { grid-column: 2; grid-row: 1; }
    .dj-mix-card { grid-column: 1 / -1; grid-row: 2; }
}

/* --- SMARTPHONES & MOBILE BROWSERS (<= 600px) --- */
@media (max-width: 600px) {
    /* Prevent iOS Safari auto-zoom on input focus */
    input, textarea, select, .item-input, .item-time, .moment-name {
        font-size: 16px !important;
    }

    /* Safe Area & Header on Mobile */
    .app-header {
        padding: max(10px, env(safe-area-inset-top)) 12px 10px 12px;
    }
    .header-logo-container {
        padding: 14px 12px;
        min-height: auto;
    }
    .header-logo-img {
        max-height: 44px;
    }

    /* Main Container Padding */
    #main-content {
        overflow-anchor: none;
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: calc(75px + env(safe-area-inset-bottom));
        width: 100%;
        box-sizing: border-box;
    }

    /* Client Dashboard Bar */
    #client-dashboard-container {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    .home-header + #client-dashboard-container,
    #client-dashboard-container.home-client-container {
        display: none !important;
        padding: 0 !important;
        margin: 0 !important;
        height: 0 !important;
    }
    .client-dashboard {
        margin-top: 12px;
        margin-bottom: 12px;
        padding: 10px 12px;
    }

    /* Menu Grid on Mobile (2 Clean Columns) */
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 0 12px 0;
        width: 100%;
    }
    .menu-card {
        padding: 14px 10px;
        aspect-ratio: 1;
        width: 100%;
    }
    .menu-image {
        width: 48px;
        height: 48px;
        margin-bottom: 8px;
    }
    .menu-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    .menu-card-full {
        grid-column: 1 / -1;
        padding: 16px 14px;
        width: 100%;
    }

    /* Karta Informace */
    .info-section-card {
        padding: 14px 14px;
        margin-bottom: 12px;
    }
    .info-item-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 6px;
    }
    .info-item-label {
        grid-column: 1;
        width: 100%;
        max-width: 100%;
        flex: none;
    }
    .info-item-del-btn {
        grid-column: 2;
        grid-row: 1;
    }
    .info-item-value {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    /* Schedule & Photo Groups */
    .harmonogram-container {
        width: 100%;
        gap: 10px;
    }
    .quiz-player-card {
        padding: 14px 16px;
        gap: 14px;
    }
    .schedule-item {
        padding: 10px 12px;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    .item-time {
        width: 95px !important;
        min-width: 95px !important;
        padding: 6px 4px;
        font-size: 16px !important;
        text-align: center;
    }

    /* Moments & Playlists */
    .moment-item {
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .moment-header,
    .playlist-header {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        padding: 10px 14px !important;
        box-sizing: border-box !important;
        flex-wrap: nowrap !important;
        gap: 8px;
    }
    .moment-name {
        font-size: 1rem !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .moment-actions,
    .playlist-actions {
        width: auto !important;
        justify-content: flex-end;
        flex-shrink: 0 !important;
    }

    /* DJ Player Mobile Single Column Stack */
    .dj-player-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
    }
    .dj-deck-a {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
    }
    .dj-mix-card {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
    }
    .dj-deck-b {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
    }
    .dj-deck-card {
        padding: 16px;
    }
    .dj-play-btn {
        width: 56px;
        height: 56px;
    }
    .dj-slider-vert {
        height: 100px;
    }

    /* Sampler 3 Columns on Mobile */
    .sampler-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
        width: 100%;
    }
    .sampler-pad {
        min-height: 90px;
        padding: 10px 8px;
    }

    /* Games – Královský kočár */
    .kocar-card {
        padding: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    .kocar-table th, .kocar-table td {
        padding: 8px 10px;
        font-size: 0.88rem;
    }
    .kocar-story {
        padding: 16px;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Modals */
    .modal-content {
        max-width: 94vw;
        max-height: 88vh;
        padding: 18px 14px;
        margin: 10px auto;
        border-radius: 16px;
        box-sizing: border-box;
    }
    .modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    .modal-actions button {
        width: 100%;
    }
}

/* --- SMALL MOBILE SCREENS (<= 380px, e.g. iPhone SE, compact Androids) --- */
@media (max-width: 380px) {
    #mini-player-bar {
        height: 52px;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .app-header:not(.home-header) + #client-dashboard-container,
    #client-dashboard-container.subpage-client-container {
        padding: 0;
        margin-bottom: 0 !important;
    }
    .app-header:not(.home-header) + #client-dashboard-container .client-info-bar,
    #client-dashboard-container.subpage-client-container .client-info-bar {
        padding: 6px 12px;
        border-radius: 0;
    }
    .mini-player-inner {
        padding: 0 6px;
        gap: 6px;
    }
    .mini-player-icon {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
    .mini-player-icon svg {
        width: 18px;
        height: 18px;
    }
    .mini-player-title {
        font-size: 0.82rem;
    }
    .mini-player-btn {
        width: 30px;
        height: 30px;
    }
    .mini-player-btn-main {
        width: 34px;
        height: 34px;
    }
    .mini-player-actions {
        gap: 2px;
    }
    .mini-player-badge {
        max-width: 85px;
        font-size: 0.65rem;
        padding: 1px 4px;
    }
    .mini-player-sub {
        gap: 4px;
        font-size: 0.7rem;
    }

    #bottom-nav {
        padding: 4px 6px;
        padding-bottom: max(4px, env(safe-area-inset-bottom));
        gap: 0;
        min-height: 56px;
    }
    #bottom-nav > .nav-btn {
        height: 38px;
    }
    .nav-utility-capsule {
        height: 40px;
    }
    .nav-utility-capsule .nav-btn {
        height: 34px;
        max-width: 38px;
    }
    .nav-icon {
        width: 24px;
        height: 24px;
    }
    .nav-btn-subscription {
        padding: 5px 6px;
        font-size: 0.65rem;
        letter-spacing: 0;
        height: 32px;
    }
    .menu-title {
        font-size: 0.8rem;
    }
    .menu-image {
        width: 42px;
        height: 42px;
    }
    .sampler-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }
    .sampler-pad {
        min-height: 80px;
    }
}

/* =========================================
   SORTABLE DRAG & DROP
   ========================================= */
.sortable-ghost {
    opacity: 0.35 !important;
    background: var(--primary-light) !important;
    border: 2px dashed var(--primary) !important;
    box-shadow: none !important;
    transform: none !important;
}

body.dark-mode .sortable-ghost {
    background: var(--primary-subtle) !important;
    border: 2px dashed var(--primary) !important;
}

.sortable-chosen {
    cursor: grabbing !important;
}

.sortable-drag,
.sortable-fallback {
    opacity: 0.98 !important;
    background: var(--white) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), 0 10px 10px rgba(0, 0, 0, 0.18) !important;
    border: 2px solid var(--primary) !important;
    border-radius: var(--radius-md) !important;
    transform: scale(1.02) !important;
    z-index: 999999 !important;
    cursor: grabbing !important;
    pointer-events: none;
    box-sizing: border-box !important;
}

body.dark-mode .sortable-drag,
body.dark-mode .sortable-fallback {
    background: var(--white) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.7), 0 10px 10px rgba(0, 0, 0, 0.5) !important;
    border: 2px solid var(--primary) !important;
}

/* =========================================
   LARGE SCREENS & DESKTOP (>= 768px landscape / >= 992px)
   ========================================= */
@media (min-width: 768px) and (orientation: landscape), (min-width: 992px) {
    #app {
        max-width: 1050px;
        box-shadow: var(--shadow-lg);
    }

    .menu-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
        padding: 0 0 16px 0;
    }

    .sampler-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }

    .game-card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .list-container {
        padding: 0 0 16px 0;
    }

    .schedule-item, .photo-group-item, .ceremony-item, .music-item {
        padding: 16px 20px;
    }

    #bottom-nav {
        max-width: 1050px !important;
        padding: 10px 60px;
    }

    #mini-player-bar {
        bottom: calc(var(--bottom-nav-height, 60px) - 1px);
        max-width: 1050px !important;
        height: 60px;
        border-radius: 0 !important;
        padding: 0 10px;
        border-bottom: none !important;
        z-index: 1005 !important;
    }
    .mini-player-title {
        font-size: 0.95rem;
    }
    .mini-player-sub {
        font-size: 0.8rem;
    }
    .mini-player-btn {
        width: 38px;
        height: 38px;
    }
    .mini-player-btn-main {
        width: 42px;
        height: 42px;
    }

    .dj-player-grid {
        grid-template-columns: 1fr 280px 1fr;
        align-items: stretch;
        gap: 20px;
    }

    .dj-deck-a {
        grid-column: 1;
        grid-row: 1;
    }

    .dj-mix-card {
        grid-column: 2;
        grid-row: 1;
    }

    .dj-deck-b {
        grid-column: 3;
        grid-row: 1;
    }

    .dj-deck-card {
        padding: 20px;
        gap: 16px;
    }

    .dj-deck-badge {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .dj-load-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .dj-track-info {
        padding: 16px;
        gap: 16px;
    }

    .dj-track-icon {
        font-size: 1.5rem;
    }

    .dj-track-title {
        font-size: 1rem;
    }

    .dj-play-btn {
        width: 64px;
        height: 64px;
    }

    .dj-mix-card {
        padding: 20px;
        gap: 20px;
    }

    .dj-crossfader-container {
        padding: 20px;
        gap: 16px;
    }

    .dj-xfader-btn {
        padding: 10px 8px;
        font-size: 0.85rem;
        min-height: 42px;
    }
}

/* ===================================================
   AI SCANNER (HARMONOGRAM & FOCENÍ SKUPINEK)
   =================================================== */
.ai-scan-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.ai-scan-banner:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.ai-scan-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-scan-text {
    flex: 1;
    min-width: 0;
}

.ai-scan-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.ai-scan-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.ai-scan-arrow {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.ai-scan-banner:hover .ai-scan-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

body.dark-mode .ai-scan-banner {
    background: var(--white);
    border-color: var(--border-color);
}

body.dark-mode .ai-scan-icon {
    background: rgba(37, 99, 235, 0.2);
    color: #60A5FA;
}

/* AI Scan Modal & Review Elements */
.ai-scan-loading {
    text-align: center;
    padding: 30px 10px;
}

.ai-scan-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid var(--primary-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: aiScanSpin 0.9s linear infinite;
    margin: 0 auto 16px;
}

@keyframes aiScanSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-scan-review-list {
    max-height: 50vh;
    overflow-y: auto;
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.ai-scan-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

body.dark-mode .ai-scan-row {
    background: rgba(255, 255, 255, 0.04);
}

.ai-scan-row .ai-row-time {
    width: 90px;
    flex-shrink: 0;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
    text-align: center;
}

.ai-scan-row .ai-row-title {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
}

body.dark-mode .ai-scan-row .ai-row-time,
body.dark-mode .ai-scan-row .ai-row-title {
    background: #1e293b;
    color: #f8fafc;
    border-color: #334155;
}

/* Unified Player Action Buttons (Play / Stop) */
.player-btn-play {
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.player-btn-play:hover {
    background-color: var(--primary-hover) !important;
    transform: scale(1.06);
}

.player-btn-play:active {
    transform: scale(0.95);
}

.player-btn-stop,
.player-btn-nav {
    background-color: var(--stop-btn-idle) !important;
    color: #FFFFFF !important;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.player-btn-stop:hover,
.player-btn-nav:hover {
    background-color: #94A3B8 !important;
    transform: scale(1.06);
}

.player-btn-stop:active,
.player-btn-nav:active {
    transform: scale(0.95);
}

/* =========================================
   TIME-BOMB GAME (Build 186)
   ========================================= */
.action-badge-bomb {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #2563EB;
}
body.dark-mode .action-badge-bomb {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.35);
    color: #60A5FA;
}

.bomb-console-card {
    background: var(--card-bg, var(--white));
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    transition: box-shadow 0.2s ease;
}

body.dark-mode .bomb-console-card {
    background: var(--card-bg, #1E293B);
    border-color: var(--border-color);
}

.bomb-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.bomb-round-badge {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.btn-bomb-header-reset {
    font-family: var(--font-family);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-bomb-header-reset:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-subtle);
}

/* Ready State */
.bomb-ready-area {
    padding: 16px 0 6px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Ticking Fuse Line (Continuous burn down, no blinking) */
.bomb-fuse-track {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin: 4px 0 18px 0;
    overflow: hidden;
    position: relative;
}

body.dark-mode .bomb-fuse-track {
    background: rgba(255, 255, 255, 0.12);
}

.bomb-ticking-line {
    height: 100%;
    width: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #DC2626 0%, #EF4444 25%, #F97316 65%, #FED7AA 100%);
    transform-origin: left center;
}

/* Exploded State Box */
.bomb-exploded-box {
    background: transparent;
    border: none;
    padding: 16px 10px 18px 10px;
    margin: 0;
    text-align: center;
    animation: bomb-fade-in 0.25s ease;
}

.bomb-exploded-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #EF4444;
    letter-spacing: 0.3px;
    margin: 0 0 10px 0;
}

body.dark-mode .bomb-exploded-title {
    color: #EF4444;
}

.bomb-exploded-desc {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 auto 18px auto;
    line-height: 1.5;
}

@keyframes bomb-fade-in {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

/* Question & Answer Area */
.bomb-question-area {
    padding: 4px 0 10px 0;
    text-align: center;
}

.bomb-question-text {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.45;
    margin: 0 0 14px 0;
    padding: 0 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bomb-answer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 10px;
    margin: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: transparent !important;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

body.dark-mode .bomb-answer-box {
    border-top-color: var(--border-color);
    border-bottom-color: var(--border-color);
    background: transparent !important;
}

.bomb-answer-label {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.bomb-answer-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.2px;
}

body.dark-mode .bomb-answer-val {
    color: var(--text-dark);
}

/* Buttons */
.bomb-actions-area {
    margin-top: 14px;
}

.btn-bomb-start {
    font-family: var(--font-family);
    background: var(--primary) !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 12px;
    padding: 16px 36px;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 54px;
    width: 100%;
    max-width: 320px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-bomb-start:hover {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.42);
    outline: none;
}

.btn-bomb-start:focus {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    outline: none;
}

.btn-bomb-start:active {
    transform: scale(0.97);
}

.bomb-ticking-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn-bomb-next {
    font-family: var(--font-family);
    background: var(--primary) !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 12px;
    padding: 16px 28px;
    font-size: 1.15rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 54px;
    width: 100%;
    max-width: 320px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-bomb-next:hover {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.42);
    outline: none;
}

.btn-bomb-next:focus {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    outline: none;
}

.btn-bomb-next:active {
    transform: scale(0.97);
}

.bomb-exploded-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn-bomb-reset {
    font-family: var(--font-family);
    background: var(--primary) !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 12px;
    padding: 15px 36px;
    font-size: 1.12rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 52px;
    width: 100%;
    max-width: 300px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-bomb-reset:hover {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.42);
    outline: none;
}

.btn-bomb-reset:focus {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    outline: none;
}

.btn-bomb-reset:active {
    transform: scale(0.97);
}




/* --- License Status Badges --- */
.license-status-badge {
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}
.license-status-active {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid rgba(5, 150, 105, 0.25);
}
body.dark-mode .license-status-active {
    background: rgba(16, 185, 129, 0.18) !important;
    border: 1px solid rgba(52, 211, 153, 0.45) !important;
    color: #6EE7B7 !important;
}
.license-status-trial {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-subtle);
}
body.dark-mode .license-status-trial {
    background: rgba(56, 189, 248, 0.18) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    color: #7DD3FC !important;
}

/* --- License Key Input Field --- */
.license-input-field,
#license-key-input {
    background: var(--bg-light) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: var(--radius-sm, 8px) !important;
    color: var(--text-dark) !important;
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.license-input-field:focus,
#license-key-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}
body.dark-mode .license-input-field,
body.dark-mode #license-key-input {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #F8FAFC !important;
}
body.dark-mode .license-input-field:focus,
body.dark-mode #license-key-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

/* --- Paywall Modal Elements --- */
.paywall-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid var(--primary-subtle);
    box-shadow: var(--shadow-sm);
}
body.dark-mode .paywall-icon-wrap {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: #38BDF8 !important;
}

/* --- Player Controls in Dark Mode (Pure White Centers & Emerald/Red Active Glow) --- */
body.dark-mode .player-btn-play {
    background-color: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35) !important;
}
body.dark-mode .player-btn-play svg {
    fill: #FFFFFF !important;
}
body.dark-mode .player-btn-stop,
body.dark-mode .player-btn-nav {
    background-color: var(--stop-btn-idle) !important;
}
body.dark-mode .player-btn-stop svg,
body.dark-mode .player-btn-nav svg {
    fill: #FFFFFF !important;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
body.dark-mode .player-btn-nav:hover svg {
    opacity: 1 !important;
}
body.dark-mode .player-btn-stop[style*="var(--stop-btn-active)"] svg {
    opacity: 1 !important;
}

/* Mini Player Bar Controls in Dark Mode - Harmonized with Bottom Bar & Navigation */
body.dark-mode .mini-player-btn-main {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 14px rgba(56, 189, 248, 0.4) !important;
}
body.dark-mode .mini-player-btn-main:hover {
    background: var(--primary-hover) !important;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.55) !important;
}
body.dark-mode .mini-player-btn-main svg {
    fill: #FFFFFF !important;
}
body.dark-mode .mini-btn-stop {
    color: var(--stop-btn-active) !important;
}
body.dark-mode .mini-btn-stop svg {
    fill: currentColor !important;
}

body.dark-mode .moment-actions .control-btn,
body.dark-mode .playlist-actions .control-btn {
    color: var(--danger-color) !important;
    opacity: 0.85;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
body.dark-mode .moment-actions .control-btn:hover,
body.dark-mode .playlist-actions .control-btn:hover {
    color: #FCA5A5 !important;
    opacity: 1;
    transform: scale(1.15);
}

/* =========================================
   INTERACTIVE TOUR GUIDE & SPOTLIGHT WALKTHROUGH
   ========================================= */
.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: auto;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.tour-overlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.tour-highlight-box {
    position: fixed;
    border-radius: 18px;
    border: 2.5px solid var(--primary);
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.78), 0 0 25px rgba(56, 189, 248, 0.55);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
}

.tour-tooltip-card {
    position: fixed;
    z-index: 9999;
    width: calc(100% - 32px);
    max-width: 440px;
    background: var(--white);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
}

.tour-overlay.tour-ready .tour-highlight-box,
.tour-overlay.tour-ready .tour-tooltip-card {
    opacity: 1;
    visibility: visible;
}

.tour-overlay.tour-instant .tour-highlight-box,
.tour-overlay.tour-instant .tour-tooltip-card {
    transition: opacity 0.25s ease !important;
}

.tour-overlay.tour-tracking .tour-highlight-box,
.tour-overlay.tour-tracking .tour-tooltip-card {
    transition: none !important;
}

.tour-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tour-step-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid var(--primary-subtle);
    letter-spacing: 0.02em;
}

.tour-close-btn {
    background: transparent;
    border: none;
    font-size: 1.15rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.tour-close-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.tour-title {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.tour-content {
    font-size: 0.9rem;
    line-height: 1.58;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.tour-content strong {
    color: var(--text-dark);
}

.tour-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    gap: 12px;
}

.tour-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tour-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.25s ease;
}

.tour-dot.active {
    width: 22px;
    border-radius: 6px;
    background: var(--primary);
}

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

.tour-btn {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Active target elevation and interaction lock during tour */
.tour-target-active {
    position: relative;
    z-index: 9998;
}

#mini-player-bar.tour-target-active {
    z-index: 9998 !important;
    pointer-events: none;
}

/* Tour Dark Mode Polish */
body.dark-mode .tour-tooltip-card {
    background: var(--white);
    border-color: var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

/* Tour Mobile Responsiveness (Phones, Tablets, iPads) */
@media (max-width: 480px) {
    .tour-tooltip-card {
        padding: 16px 14px;
        border-radius: 16px;
        max-height: 75vh;
        overflow-y: auto;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border-color);
    }
    .tour-tooltip-header {
        margin-bottom: 6px;
    }
    .tour-step-badge {
        font-size: 0.72rem;
        padding: 3px 8px;
    }
    .tour-title {
        font-size: 1.02rem;
        margin-bottom: 6px;
    }
    .tour-content {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: 12px;
    }
    .tour-tooltip-footer {
        padding-top: 10px;
    }
    .tour-dots {
        gap: 4px;
    }
    .tour-dot {
        width: 6px;
        height: 6px;
    }
    .tour-dot.active {
        width: 18px;
    }
    .tour-btn {
        padding: 7px 12px;
        font-size: 0.82rem;
    }
}

/* =========================================
   REŽIM AKCE / LIVE LOCK (Event Protection)
   ========================================= */
#live-lock-btn {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

#live-lock-btn svg.nav-icon {
    color: var(--primary);
    transition: transform 0.15s ease;
}

/* Zaoblený čtvercový progress indikátor pro Hold-to-Unlock */
.lock-hold-ring {
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 5;
}

.lock-hold-circle {
    stroke: var(--primary);
    stroke-dasharray: 136;
    stroke-dashoffset: 136;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#live-lock-btn.is-holding .lock-hold-ring {
    opacity: 1;
}

#live-lock-btn.is-holding .lock-hold-circle {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.2s linear;
}

#live-lock-btn.is-holding #live-lock-icon {
    transform: scale(0.92);
}

body.dark-mode .lock-hold-circle {
    stroke: var(--primary);
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.7));
}

/* Shake animace při krátkém klepnutí v zamčeném stavu */
@keyframes lockShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-3.5px); }
    40%, 80% { transform: translateX(3.5px); }
}

#live-lock-btn.lock-shake {
    animation: lockShake 0.35s ease;
}

/* Active highlight on bottom nav button when locked (Glossy Mini-Tile matching Studio Cards) */
body.live-locked #live-lock-btn,
html.live-locked body #live-lock-btn {
    background: linear-gradient(180deg, #FFFFFF 0%, #E0EEFF 100%) !important;
    border: 1px solid rgba(37, 99, 235, 0.42) !important;
    border-radius: 10px;
    height: 40px;
    max-width: 44px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92), inset 0 1.5px 0 #FFFFFF, 0 2px 6px rgba(37, 99, 235, 0.16), 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

body.live-locked #live-lock-icon,
html.live-locked body #live-lock-icon {
    transform: scale(1.04);
}

body.dark-mode.live-locked #live-lock-btn,
html.dark-mode.live-locked body #live-lock-btn {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.22) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.55) !important;
    border-radius: 10px;
    height: 40px;
    max-width: 44px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 2px 8px rgba(0, 0, 0, 0.45), 0 0 10px rgba(56, 189, 248, 0.20) !important;
}

/* Floating Toast notification for Live Lock toggle - native app design */
.live-lock-toast {
    position: fixed;
    bottom: calc(var(--bottom-nav-height, 60px) + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 90vw;
    white-space: nowrap;
}

body.dark-mode .live-lock-toast {
    background: var(--white);
    color: var(--text-dark);
    border-color: var(--border-color);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}

.live-lock-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.live-lock-toast.hidden {
    display: none;
}

/* -----------------------------------------
   RULES WHEN LIVE LOCK IS ACTIVE
   ----------------------------------------- */
/* 1. Client Manager (Hide rename, add, delete buttons, keep selector active) */
body.live-locked .client-dashboard button,
html.live-locked body .client-dashboard button {
    display: none !important;
}

/* 2. Harmonogram & Focení skupinek */
body.live-locked .schedule-item .control-btn,
html.live-locked body .schedule-item .control-btn,
body.live-locked .schedule-actions,
html.live-locked body .schedule-actions {
    display: none !important;
}

/* Lock text inputs and times against accidental tap / virtual keyboard */
body.live-locked .schedule-item textarea.item-name,
html.live-locked body .schedule-item textarea.item-name,
body.live-locked .schedule-item input[type="time"],
html.live-locked body .schedule-item input[type="time"] {
    pointer-events: none !important;
    user-select: text;
    border-color: transparent !important;
    background-color: transparent !important;
    cursor: default !important;
}

/* Keep checkboxes 100% clickable */
body.live-locked .schedule-item .item-check,
html.live-locked body .schedule-item .item-check {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* 3. Obřad a Hudba (Moments & Playlists) */
body.live-locked .moment-name,
html.live-locked body .moment-name {
    pointer-events: none !important;
    border-color: transparent !important;
    background-color: transparent !important;
    cursor: default !important;
}

body.live-locked .moment-actions button.btn-secondary,
body.live-locked .moment-actions button.btn-danger,
body.live-locked .playlist-actions button.btn-secondary,
body.live-locked .playlist-actions button.btn-danger,
html.live-locked body .moment-actions button.btn-secondary,
html.live-locked body .moment-actions button.btn-danger,
html.live-locked body .playlist-actions button.btn-secondary,
html.live-locked body .playlist-actions button.btn-danger {
    display: none !important;
}

/* Remove track button in playlist */
body.live-locked .playlist-file-item button[onclick*="removeFromPlaylist"],
html.live-locked body .playlist-file-item button[onclick*="removeFromPlaylist"] {
    display: none !important;
}

/* Add Moment / Add Playlist buttons */
body.live-locked .ceremony-container button[onclick*="addMoment"],
body.live-locked .ceremony-container button[onclick*="addPlaylist"],
html.live-locked body .ceremony-container button[onclick*="addMoment"],
html.live-locked body .ceremony-container button[onclick*="addPlaylist"] {
    display: none !important;
}

/* Ensure playlist tracks remain clickable */
body.live-locked .playlist-file-item span,
html.live-locked body .playlist-file-item span {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Ensure player buttons remain clickable */
body.live-locked .player-btn,
html.live-locked body .player-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* 4. Informace & Poznámky */
body.live-locked .info-section-del-btn,
body.live-locked .info-item-del-btn,
body.live-locked .info-add-item-btn,
body.live-locked .info-actions-bar,
html.live-locked body .info-section-del-btn,
html.live-locked body .info-item-del-btn,
html.live-locked body .info-add-item-btn,
html.live-locked body .info-actions-bar {
    display: none !important;
}

body.live-locked .info-section-title,
html.live-locked body .info-section-title {
    pointer-events: none !important;
    user-select: text;
    border-color: transparent !important;
    background-color: transparent !important;
    cursor: default !important;
    padding-left: 0 !important;
}

body.live-locked .info-item-row,
html.live-locked body .info-item-row {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

body.live-locked .info-item-row:last-child,
html.live-locked body .info-item-row:last-child {
    border-bottom: none;
}

body.live-locked .info-item-label,
html.live-locked body .info-item-label {
    pointer-events: none !important;
    user-select: text;
    border-color: transparent !important;
    background-color: transparent !important;
    cursor: default !important;
    font-weight: 600;
    padding: 2px 0 !important;
    min-height: auto !important;
}

body.live-locked .info-item-value,
html.live-locked body .info-item-value {
    pointer-events: none !important;
    user-select: text;
    border-color: transparent !important;
    background-color: transparent !important;
    cursor: default !important;
    padding: 2px 0 !important;
    min-height: auto !important;
}

body.dark-mode.live-locked .info-item-label,
html.dark-mode.live-locked body .info-item-label {
    color: #CBD5E1 !important;
    background-color: transparent !important;
    border-color: transparent !important;
}

body.dark-mode.live-locked .info-item-value,
html.dark-mode.live-locked body .info-item-value {
    color: #F8FAFC !important;
    background-color: transparent !important;
    border-color: transparent !important;
}

body.live-locked #notes-area,
html.live-locked body #notes-area {
    pointer-events: none !important;
    user-select: text;
    cursor: default !important;
}

/* 5. Hry: Rok s novomanželi & Svatební kvíz */
body.live-locked .rok-card textarea,
html.live-locked body .rok-card textarea,
body.live-locked .quiz-question-textarea,
html.live-locked body .quiz-question-textarea {
    pointer-events: none !important;
    user-select: text;
    cursor: default !important;
}

body.live-locked .rok-card .item-check,
html.live-locked body .rok-card .item-check {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* 6. Kvíz pro hosty */
body.live-locked .quiz-hoste-textarea,
html.live-locked body .quiz-hoste-textarea {
    pointer-events: none !important;
    user-select: text;
    cursor: default !important;
}

body.live-locked .quiz-hoste-edit-actions,
html.live-locked body .quiz-hoste-edit-actions {
    display: none !important;
}

.quiz-hoste-phase-tabs {
    display: flex;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.quiz-hoste-phase-btn {
    flex: 1;
    padding: 8px 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-hoste-phase-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .quiz-hoste-phase-btn.active {
    background: var(--primary-light);
    color: var(--primary);
}

.quiz-hoste-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.quiz-hoste-chip {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.quiz-hoste-chip.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.active-question-row {
    border-color: var(--primary) !important;
    background: var(--primary-light) !important;
}

.quiz-hoste-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
}

.quiz-hoste-timer-track {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin: 8px 0 16px 0;
    overflow: hidden;
    position: relative;
}

body.dark-mode .quiz-hoste-timer-track {
    background: rgba(255, 255, 255, 0.12);
}

.quiz-hoste-timer-bar {
    height: 100%;
    width: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #3B82F6 100%);
    transition: width 0.2s linear, background 0.3s ease;
}

/* =========================================
   TIPY NA HRY & VYHODNOCENÍ SVATEBNÍHO KVÍZU (2026 Redesign)
   ========================================= */
.tip-category-card {
    background: #FFFFFF !important;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.25s ease;
    width: 100%;
    box-sizing: border-box;
}

.tip-category-card:hover {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: var(--shadow-md);
}

body.dark-mode .tip-category-card {
    background: var(--card-bg, #1E293B) !important;
    border-color: var(--border-color);
}

body.dark-mode .tip-category-card:hover {
    border-color: rgba(56, 189, 248, 0.50);
    box-shadow: var(--shadow-md);
}

.tip-category-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: var(--white);
    color: var(--text-dark);
    transition: background-color 0.2s ease;
}

.tip-category-header:hover {
    background: #F8FAFC;
}

body.dark-mode .tip-category-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.tip-game-item {
    padding: 18px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--white);
}

.tip-game-title {
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

body.dark-mode .tip-game-title {
    color: #F8FAFC;
}

/* Wedding Quiz Evaluation Card */
.quiz-result-card {
    margin-top: 28px;
    margin-bottom: 25px;
    padding: 28px 24px 24px;
    background: var(--white);
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    font-family: var(--font-family);
}

body.dark-mode .quiz-result-card {
    background: var(--white);
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

.quiz-result-label {
    margin: 0 0 6px 0;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.quiz-result-percent {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin: 2px 0 18px 0;
}

body.dark-mode .quiz-result-percent {
    color: #F8FAFC;
}

.quiz-result-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.quiz-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 9px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 600;
}

.quiz-stat-pill strong {
    font-weight: 800;
    font-size: 1.05rem;
}

.quiz-stat-pill.stat-match {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.26);
    color: #15803D;
}

body.dark-mode .quiz-stat-pill.stat-match {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.34);
    color: #4ADE80;
}

.quiz-stat-pill.stat-mismatch {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.26);
    color: #B91C1C;
}

body.dark-mode .quiz-stat-pill.stat-mismatch {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.34);
    color: #F87171;
}

.quiz-stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
}

.quiz-stat-icon.icon-match {
    background: #22C55E;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
}

.quiz-stat-icon.icon-mismatch {
    background: #EF4444;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.quiz-result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.quiz-result-btn {
    padding: 11px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
}

body.dark-mode .quiz-result-actions .btn-secondary.quiz-result-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color);
    color: var(--text-dark);
}

body.dark-mode .quiz-result-actions .btn-secondary.quiz-result-btn:hover {
    background: rgba(255, 255, 255, 0.11);
}



