/* =========================================
   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: #F0F2F5;
    --text-dark: #111827;
    --text-secondary: #6B7280;
    --white: #FFFFFF;
    
    /* Accent Colors */
    --accent-teal: #D1FAE5;
    --accent-orange-light: #FFF7ED;
    --accent-orange: #FB923C;
    --accent-red: #FCA5A5;
    
    /* Shadows & Borders */
    --border-color: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    
    /* 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 --- */
body.dark-mode {
    --primary: #60A5FA;
    --primary-hover: #93C5FD;
    --primary-light: #1E293B;
    --primary-subtle: #1E3A5F;
    --bg-light: #0F1117;
    --text-dark: #E5E7EB;
    --text-secondary: #9CA3AF;
    --white: #1A1F2E;
    --accent-teal: #064E3B;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* =========================================
   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;
}

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

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

input, textarea, [contenteditable], select {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
    font-family: var(--font-family);
}

html {
    height: 100%;
    width: 100%;
    overflow: hidden !important;
}

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;
    transition: background-color 0.3s ease;
}

#main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 90px 16px;
    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 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-color: 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);
}

body.dark-mode .header-logo-container {
    background-color: var(--white);
    border: 1px solid var(--border-color);
}

.header-logo-img {
    max-width: 90%;
    max-height: 160px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(25%) sepia(98%) saturate(1653%) hue-rotate(215deg) brightness(96%) contrast(93%);
}

.logo-img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    filter: brightness(0) saturate(100%) invert(25%) sepia(98%) saturate(1653%) hue-rotate(215deg) brightness(96%) contrast(93%);
}

body.dark-mode .header-logo-img,
body.dark-mode .logo-img {
    filter: brightness(0) saturate(100%) invert(67%) sepia(61%) saturate(2462%) hue-rotate(190deg) brightness(101%) contrast(98%);
}

/* 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;
}

.menu-card, .menu-card-full {
    background-color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 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;
}

.menu-card:hover, .menu-card-full:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.menu-card:active, .menu-card-full:active {
    transform: scale(0.97);
}

body.dark-mode .menu-card, body.dark-mode .menu-card-full {
    background-color: var(--white);
    border: 1px solid var(--border-color);
}

.lock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FEE2E2;
    color: #DC2626;
    font-size: 0.8rem;
    padding: 3px 6px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    border: 1px solid #FECACA;
}

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 {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
    transition: transform 0.2s ease;
    filter: brightness(0) saturate(100%) invert(25%) sepia(98%) saturate(1653%) hue-rotate(215deg) brightness(96%) contrast(93%);
}

body.dark-mode .menu-image {
    filter: brightness(0) saturate(100%) invert(67%) sepia(61%) saturate(2462%) hue-rotate(190deg) brightness(101%) contrast(98%);
}

.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-color: var(--white);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    min-height: 60px;
    box-sizing: border-box;
}

body.dark-mode #bottom-nav {
    background-color: var(--white);
}

#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: 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    flex: 0 1 auto;
    width: 40px;
    height: 40px;
    min-width: 32px;
    cursor: pointer;
    box-sizing: border-box;
}

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

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

.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.2s;
}

.nav-btn-subscription {
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    flex: 0 0 auto;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.nav-btn-subscription:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

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

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

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

.nav-btn svg {
    width: 24px;
    height: 24px;
}

.nav-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.2s;
    filter: brightness(0) saturate(100%) invert(25%) sepia(98%) saturate(1653%) hue-rotate(215deg) brightness(96%) contrast(93%);
}

body.dark-mode .nav-icon {
    filter: brightness(0) saturate(100%) invert(67%) sepia(61%) saturate(2462%) hue-rotate(190deg) brightness(101%) contrast(98%);
}

.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: var(--shadow-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-btn-subscription:hover {
    background-color: var(--primary-hover);
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

body.dark-mode .nav-btn-subscription {
    background-color: var(--primary);
    color: #0F1117 !important;
}

/* =========================================
   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: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.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;
}

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: #F87171;
    border-color: rgba(239, 68, 68, 0.3);
}

body.dark-mode .btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.15);
}

.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: all 0.2s 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;
}

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

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

.schedule-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    gap: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

body.dark-mode .schedule-item {
    background-color: var(--white);
    border-color: var(--border-color);
}

.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.completed {
    background-color: #86EFAC !important;
    border-color: #4ADE80 !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-color: #FCA5A5 !important;
    border-color: #EF4444 !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-color: #166534 !important;
    border-color: #22C55E !important;
}

body.dark-mode .schedule-item.completed .item-time {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #BBF7D0 !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: #BBF7D0 !important;
}

body.dark-mode .schedule-item.mismatch {
    background-color: #7F1D1D !important;
    border-color: #EF4444 !important;
}

body.dark-mode .schedule-item.mismatch .item-time {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #FECACA !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: #FECACA !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;
}

.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;
}

.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-color: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.2s ease;
}

.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: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 0;
    overflow: hidden;
}

.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: var(--white);
    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);
}

.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;
}

.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 {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 0;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    overflow: hidden;
}

.playlist-container {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 0;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    overflow: hidden;
}

.moment-item:hover, .playlist-container:hover {
    box-shadow: var(--shadow-md);
}

body.dark-mode .moment-item, body.dark-mode .playlist-container {
    background-color: var(--white);
    border-color: var(--border-color);
}

.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 {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

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

.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: var(--white);
    position: relative;
}

.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;
}

.client-info-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    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(--white);
    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);
}

.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: 1000;
    padding: var(--spacing-md);
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background-color: 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-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.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;
}

.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 {
    padding: 24px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

body.dark-mode .sampler-container {
    background-color: var(--white) !important;
    border-color: var(--border-color) !important;
}

.sampler-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 16px;
    margin-bottom: 24px;
}

.sampler-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .sampler-item input {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.sampler-label {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    text-align: center;
    font-family: var(--font-family);
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.sampler-label:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
    outline: none;
    background: var(--white);
}

.sampler-pad {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    background-color: var(--primary-light);
    border: 2px solid var(--primary-subtle);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    word-break: break-word;
    position: relative;
    overflow: hidden;
}

body.dark-mode .sampler-pad {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-subtle);
}

.sampler-pad:hover {
    background-color: var(--primary-subtle);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.sampler-pad:active, .sampler-pad.active {
    transform: scale(0.96);
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sampler-pad.active::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse-pad 0.3s ease-out;
}

@keyframes pulse-pad {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.sampler-upload-btn {
    width: 100%;
    height: 42px;
    padding: 0 8px;
    background: var(--white);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

.sampler-upload-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-color: var(--primary);
}

.sampler-pad.playing {
    background-color: #86EFAC !important;
    border-color: #4ADE80 !important;
    color: #14532D !important;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.35);
}

body.dark-mode .sampler-pad.playing {
    background-color: #166534 !important;
    border-color: #22C55E !important;
    color: #BBF7D0 !important;
}

/* =========================================
   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: var(--white);
    padding: 16px 48px;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    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);
}

.client-sheet-header {
    background-color: var(--primary);
    color: #FFFFFF;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.client-sheet-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFFFFF;
}

.client-sheet-subheaders {
    display: grid;
    grid-template-columns: 200px 160px 1fr;
    gap: 12px;
    background: var(--white);
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

.client-sheet-row {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
}

.client-sheet-row:nth-child(even) {
    background: var(--bg-light);
}

.client-sheet-row:last-child {
    border-bottom: none;
}

.client-sheet-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    padding-top: 8px;
}

.sheet-input-detail, .sheet-input-note {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text-dark);
    font-family: inherit;
    resize: none;
    min-height: 40px;
    transition: all 0.2s ease;
}

.sheet-input-detail:focus, .sheet-input-note:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

/* Dark Mode Client Sheet */
body.dark-mode .client-sheet-main-title {
    background-color: var(--white);
    color: var(--text-dark);
    border-color: var(--border-color);
}

body.dark-mode .client-sheet-header {
    background-color: var(--primary);
    color: #000000;
    border-color: var(--border-color);
}

body.dark-mode .client-sheet-header h3 {
    color: #000000 !important;
}
body.dark-mode .client-sheet-subheaders { background: var(--white); color: var(--text-secondary); border-color: var(--border-color); }
body.dark-mode .client-sheet-row { background: var(--white); border-color: var(--border-color); }
body.dark-mode .client-sheet-row:nth-child(even) { background: var(--bg-light) !important; }
body.dark-mode .client-sheet-label { color: var(--text-dark); }
body.dark-mode .sheet-input-detail, body.dark-mode .sheet-input-note { background-color: var(--white); color: var(--text-dark); border-color: var(--border-color); }

/* =========================================
   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(--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;
}

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

.dj-deck-a {
    border-top: 4px solid var(--primary);
    grid-column: 1;
    grid-row: 1;
}

.dj-deck-b {
    border-top: 4px solid var(--accent-orange);
    grid-column: 2;
    grid-row: 1;
}

.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 {
    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;
}

.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: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    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);
}

.dj-play-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

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

/* MIXER CARD */
.dj-mix-card {
    background: 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;
}

.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 {
    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: var(--accent-orange-light);
}

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

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

.dj-xfader-btn-b:hover {
    background: var(--accent-orange-light);
    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 {
    color: var(--text-dark) !important;
}

body.dark-mode .timer-display,
body.dark-mode #timer-display,
body.dark-mode #stopwatch-display {
    color: var(--white) !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: 12px;
        padding: 10px 24px;
    }
    .nav-btn {
        width: 44px;
        height: 44px;
    }
    .nav-icon {
        width: 26px;
        height: 26px;
    }
    .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(4, 1fr);
        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 {
        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;
    }

    /* 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%;
    }

    /* Client Sheet (Informace) */
    .client-sheet-subheaders {
        display: none;
    }
    .client-sheet-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 14px;
    }
    .client-sheet-label {
        font-size: 0.95rem;
        color: var(--text-secondary);
        margin-bottom: 2px;
        padding-top: 0;
    }
    .client-sheet-section {
        margin: 12px 0 16px 0;
    }

    /* Schedule & Photo Groups */
    .harmonogram-container {
        width: 100%;
        gap: 10px;
    }
    .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 {
        padding: 10px 14px !important;
        flex-wrap: wrap;
        gap: 8px;
    }
    .moment-name {
        font-size: 1.05rem !important;
        flex: 1 1 100%;
    }
    .moment-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* 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 2 Columns on Mobile */
    .sampler-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }
    .sampler-item {
        padding: 12px 10px;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    .sampler-pad {
        min-height: 72px;
        font-size: 1rem;
    }

    /* 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) {
    #bottom-nav {
        padding: 4px 6px;
        padding-bottom: max(4px, env(safe-area-inset-bottom));
        gap: 2px;
    }
    .nav-btn {
        width: 34px;
        height: 36px;
        padding: 4px;
    }
    .nav-icon {
        width: 20px;
        height: 20px;
    }
    .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 {
        gap: 8px;
    }
    .sampler-item {
        padding: 8px;
    }
    .sampler-pad {
        min-height: 64px;
    }
}

/* =========================================
   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(4, 1fr);
        gap: 16px;
    }

    .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;
    }

    .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;
    }
}
