@font-face {
    font-family: 'Benguiat';
    src: url('./fonts/ITCBenguiatStdBoldCn.woff2') format('woff2'),
         url('./fonts/ITCBenguiatStdBoldCn.OTF') format('otf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: -webkit-fill-available;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: clip;
    position: relative;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    padding-bottom: env(safe-area-inset-bottom, 2rem);
}

.container {
    position: relative;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/backgrounds/flux_1.webp') center/cover;
    opacity: 0.4;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 0, 150, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 100, 0, 0.06) 0%, transparent 50%);
}

.header {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.band-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    font-family: 'Benguiat', 'Inter', 'sans-serif';
    letter-spacing: -1px;
}

.band-logo {
    max-width: 25rem;
    width: 90vw;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

section {
    z-index: 10;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    z-index: 1;
}

.link-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.link-button[data-color="red"]:hover {
    border-color: #ff6b6b;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.2);
}

.link-button[data-color="orange"]:hover {
    border-color: rgb(235, 118, 59);
    box-shadow: 0 8px 32px rgba(254, 202, 87, 0.2);
}

.link-button[data-color="blue"]:hover {
    border-color: #45b7d1;
    box-shadow: 0 8px 32px rgba(69, 183, 209, 0.2);
}

.link-button[data-color="purple"]:hover {
    border-color: #a55eea;
    box-shadow: 0 8px 32px rgba(165, 94, 234, 0.2);
}

.link-button[data-color="green"]:hover {
    border-color: #4ecdc4;
    box-shadow: 0 8px 32px rgba(78, 205, 196, 0.2);
}

.link-button[data-color="yellow"]:hover {
    border-color: #f1c40f;
    box-shadow: 0 8px 32px rgba(241, 196, 15, 0.2);
}

.link-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.link-icon img {
    object-fit: contain;
}

.link-icon.soundcloud img {
    object-fit: cover;
    object-position: center left;
}

.press-kit-page .link-icon {
    background: rgba(0, 0, 0, 0.05);
    margin-right: 1rem;
}

.press-kit-page .link-icon.soundcloud img {
    filter: invert(1);
}

.press-kit-page a:hover .link-icon {
    background: rgba(0, 0, 0, 0.15);
}

.link-text {
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
}

.events-section {
    width: 100%;
    max-width: 500px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.event-card:hover::before {
    left: 100%;
}

.event-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    min-width: 80px;
    flex-shrink: 0;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-venue {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 0.25rem;
}

.event-location {
    font-size: 0.9rem;
    color: #999;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.event-lineup {
    flex: 1;
}

.lineup-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.lineup-bands {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.3;
}

.ticket-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ticket-button:hover {
    background: linear-gradient(135deg, #ff5252, #ff1744);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.ticket-button.unavailable {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: not-allowed;
}

.ticket-button.unavailable:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

.footer {
    margin-top: 3rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .header {
        margin-bottom: 2rem;
    }
    
    .band-name {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .link-button {
        padding: 0.875rem 1.25rem;
    }
    
    .link-text {
        font-size: 1rem;
    }
    
    .link-icon {
        font-size: 1.25rem;
        width: 2rem;
        height: 2rem;
    }
    
    .events-section {
        max-width: 100%;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .event-card {
        padding: 1.25rem;
    }
    
    .event-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        min-width: auto;
    }
    
    .event-day {
        font-size: 1.25rem;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .ticket-button {
        align-self: center;
        width: fit-content;
    }
}

.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0); 
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap; 
  width: 1px;
}

/* Shared Light Page Styles */
.light-page {
    background: #ffffff;
    color: #333333;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: clip;
    position: relative;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    padding-bottom: env(safe-area-inset-bottom, 2rem);
}

.center-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.page-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    color: #333333;
    margin-bottom: 0;
    line-height: 1;
    font-family: 'Benguiat', 'Inter', sans-serif;
    text-align: center;
}

.back-home-link {
    display: inline-block;
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-home-link:hover {
    color: #333333;
}

.section-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    line-height: 1.3;
}

.section-heading:first-child {
    margin-top: 0;
}

.light-page p {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.light-page p:last-child {
    margin-bottom: 0;
}

/* Mobile responsiveness for light pages */
@media (max-width: 480px) {
    .center-container {
        padding: 1rem;
    }

    .center-content {
        gap: 1.5rem;
    }

    .page-title {
        font-size: 3rem;
    }
}

/* 404 Error Page Styles */
.error-text-container {
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.error-page .error-title {
    font-size: clamp(4rem, 12vw, 8rem);
    margin-bottom: 1rem;
}

.error-page .error-message {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 0;
    font-weight: 500;
}

.error-image-container {
    max-width: 500px;
    width: 100%;
}

.error-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.back-home-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #333333;
    border: 2px solid #333333;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.back-home-button:hover {
    background: transparent;
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness for 404 page */
@media (max-width: 480px) {
    .error-container {
        padding: 1rem;
    }
    
    .error-content {
        gap: 1.5rem;
    }
    
    .error-title {
        font-size: 3rem;
    }
    
    .error-message {
        font-size: 1.1rem;
    }
    
    .back-home-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Newsletter Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #aaaaaa;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 0 1.5rem 1.5rem;
}

.modal-body p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Newsletter Form Styles */
.newsletter-form {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #888888;
}

.form-input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.form-input.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}

.form-input.error:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.form-help {
    font-size: 0.8rem;
    color: #aaaaaa;
    margin-top: 0.5rem;
}

.form-error {
    font-size: 0.8rem;
    color: #ff6b6b;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.form-actions {
    margin-top: 1.5rem;
}

.submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff5252, #ff1744);
    border-color: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.submit-btn.loading .btn-spinner {
    display: block;
}

.submit-btn.loading .btn-text {
    display: none;
}

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

/* Success/Error States */
.success-state,
.error-state {
    text-align: center;
    padding: 1rem 0;
}

.success-icon,
.error-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.success-icon svg {
    color: #4ade80;
    width: 48px;
    height: 48px;
}

.error-icon svg {
    color: #ff6b6b;
    width: 48px;
    height: 48px;
}

/* Modal success/error titles (newsletter modal) */
.modal-overlay .success-title,
.modal-overlay .error-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Modal success/error messages (newsletter modal) */
.modal-overlay .success-message,
.modal-overlay .error-message {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.close-btn,
.retry-btn {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.close-btn:hover,
.retry-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Honeypot field - completely hidden */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
}

/* Green color for newsletter button */
.link-button[data-color="green"]:hover {
    border-color: #4ecdc4;
    box-shadow: 0 8px 32px rgba(78, 205, 196, 0.2);
}

/* Newsletter button specific styling - left align text */
.link-button[data-color="green"] {
    text-align: left;
    justify-content: flex-start;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .modal-content {
        margin: 1rem;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1rem 1rem 0;
        margin-bottom: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 0 1rem 1rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
    }
}

/* Press Kit Page Styles */
.press-kit-page {
    padding: 0;
}

.press-kit-header {
    background: #ffffff;
    padding: 2rem 2rem 1rem;
    top: 0;
    z-index: 100;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.header-band-logo {
    filter: brightness(0.885) invert(1);
    display: block;
    margin: 0 auto 30px;
    height: auto;
    object-fit: contain;
    max-width: 80vw;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.contact-button:hover {
    background: linear-gradient(135deg, #ff5252, #ff1744);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.press-kit-header .back-home-link {
    margin-bottom: 0;
}

.press-kit-header .page-title {
    font-size: clamp(.825rem, 6.7vw, 2.5rem);
    margin: 0 auto;
    max-width: 1200px;
}

.press-kit-main {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.press-kit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.press-kit-card {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.press-kit-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 1.5rem;
    font-family: 'Benguiat', 'Inter', sans-serif;
}

.pictures-card,
.video-card {
    grid-column: 1 / -1;
}

.track-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.track-item:last-child {
    border-bottom: none;
}

.play-pause-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.play-pause-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.play-pause-btn:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
    background: rgba(255, 107, 107, 0.1);
}

.play-pause-btn:active {
    transform: translateY(0);
}

.play-pause-btn.playing {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.play-pause-btn.loading {
    cursor: wait;
}

.play-icon,
.pause-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    color: inherit;
    transition: opacity 0.2s ease;
}

.pause-icon {
    opacity: 0;
}

.play-pause-btn.playing .play-icon {
    opacity: 0;
}

.play-pause-btn.playing .pause-icon {
    opacity: 1;
}

.loading-spinner-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left: 2px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.play-pause-btn.loading .play-icon,
.play-pause-btn.loading .pause-icon {
    opacity: 0;
}

.track-name {
    font-weight: 500;
    color: #333333;
    flex: 1;
    min-width: 0;
}

.track-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.progress-container {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    position: relative;
    min-width: 120px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff5252);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.85rem;
    color: #666666;
    font-family: 'Monaco', 'Courier New', monospace;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.current-time,
.total-time {
    font-style: normal;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .play-pause-btn,
    .progress-bar {
        transition: none;
    }

    .loading-spinner {
        animation: none;
        border-left-color: rgba(0, 0, 0, 0.3);
    }
}

/* Mobile responsiveness for audio player */
@media (max-width: 768px) {
    .track-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .track-controls {
        width: 100%;
        margin-top: 0.5rem;
        min-width: unset;
    }

    .play-pause-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .play-icon,
    .pause-icon {
        width: 14px;
        height: 14px;
    }

    .loading-spinner {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .track-item {
        padding: 0.75rem 0;
    }

    .track-controls {
        gap: 0.75rem;
    }

    .progress-container {
        min-width: 80px;
    }

    .time-display {
        font-size: 0.8rem;
        min-width: 70px;
    }
}

/* Audio player utility classes */
.loading-spinner.hidden {
    display: none;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Photo Gallery Lightbox Enhancements */
.photo-item {
    position: relative;
    cursor: pointer;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-item:focus-within .photo-overlay {
    opacity: 1;
}

.photo-overlay:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

.expand-icon {
    width: 32px;
    height: 32px;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Gallery Controls */
.gallery-controls {
    position: relative;
    margin-top: -3rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gallery-fade {
    position: absolute;
    top: 0;
    left: -.5rem;
    right: -.5rem;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #fafafadd 50%,
        #fafafa 100%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.photo-gallery.expanded ~ .gallery-controls .gallery-fade {
    opacity: 0;
}

.gallery-toggle-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.gallery-toggle-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-toggle-btn:focus {
    outline: 2px solid #007acc;
    outline-offset: 2px;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.gallery-toggle-btn[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    width: 95vw;
    height: 95vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: lightbox-enter 0.3s ease-out;
}

@keyframes lightbox-enter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.lightbox-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333333;
    font-family: 'Benguiat', 'Inter', sans-serif;
}

.lightbox-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333333;
}

.lightbox-close:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    height: 100%;
    overflow: hidden;
    background: #000;
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #f8f8f8;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
}

.lightbox-nav:disabled:hover {
    transform: translateY(-50%);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    text-align: center;
}

.photo-counter {
    font-size: 0.9rem;
    color: #666666;
    font-family: 'Monaco', 'Courier New', monospace;
}

/* Mobile lightbox adaptations */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-header,
    .lightbox-footer {
        padding: 1rem;
    }

    .expand-icon {
        width: 28px;
        height: 28px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .lightbox-overlay,
    .photo-overlay,
    .lightbox-nav {
        transition: none;
    }

    .lightbox-content {
        animation: none;
    }

    @keyframes lightbox-enter {
        from, to {
            opacity: 1;
            transform: none;
        }
    }
}

.music-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #ff8c42, #ff7b25);
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.2);
}

.music-link:hover {
    background: linear-gradient(135deg, #ff7b25, #ff6500);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 140, 66, 0.3);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

/* Hidden photos initially */
.photo-gallery .hidden-photo {
    display: none;
}

/* When gallery is expanded, show all photos */
.photo-gallery.expanded .hidden-photo {
    display: block;
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-item {
    margin: 0;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.photo-item img:hover {
    opacity: 0.9;
}

.photo-note {
    font-size: 0.85rem;
    color: #666666;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.video-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.video-placeholder p {
    margin: 0 0 0.5rem;
    color: #666666;
    font-size: 1.1rem;
}

.video-placeholder small {
    color: #888888;
    font-size: 0.9rem;
}

.press-quote {
    margin: 0;
    padding: 0;
    border-left: 4px solid #ff6b6b;
    padding-left: 1.5rem;
    font-style: italic;
}

.press-quote p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #444444;
}

.press-quote footer {
    margin-top: 1rem;
}

.press-quote cite a {
    color: #666666;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.press-quote cite a:hover {
    color: #333333;
    text-decoration: underline;
}

.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-links li {
    margin-bottom: 0.75rem;
}

.social-links li:last-child {
    margin-bottom: 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    color: #555555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #333333;
}

.contact-section {
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: visible;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 2rem;
    font-family: 'Benguiat', 'Inter', sans-serif;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info strong {
    color: #333333;
    font-weight: 600;
}

.contact-info a:not(.contact-button) {
    color: #555555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover:not(.contact-button) {
    color: #333333;
    text-decoration: underline;
}

.contact-cta {
    color: #666666;
    font-size: 1rem;
    margin: 0;
    font-style: italic;
}

/* Mobile responsiveness for press kit */
@media (max-width: 768px) {
    .press-kit-header {
        padding: 1.5rem 1rem 1rem;
    }

    .header-nav {
        margin-bottom: 1.5rem;
    }

    .contact-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .press-kit-main {
        padding: 1rem 1rem 2rem;
    }

    .press-kit-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .press-kit-card {
        padding: 1.5rem;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-toggle-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }

    .gallery-controls {
        margin-top: -2.5rem;
        height: 3.5rem;
    }

    .contact-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .press-kit-header .page-title {
        font-size: 2rem;
    }

    .contact-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .press-kit-card h2 {
        font-size: 1.25rem;
    }
}

/* MOLOKAART Page Styles */


.molokaart-content {
    max-width: 860px;
}

.molokaart-header {
    text-align: center;
    position: relative;
}



.molokaart-page .title-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: .5rem 0 0;
    transition: all 0.3s ease;
}

.molokaart-page .title-link::before,
.molokaart-page .title-link::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 0;
    height: 2px;
    background: #333333;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.molokaart-page .title-link::before {
    top: 0;
}

.molokaart-page .title-link::after {
    bottom: 1.5rem;
}

.molokaart-page .title-link:hover::before,
.molokaart-page .title-link:hover::after {
    width: 100%;
}

.molokaart-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    align-items: start;
}

.molokaart-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.molokaart-image {
    width: 100%;
    max-width: 300px;
}

.card-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.info-content {
    flex: 1;
}


.molokaart-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.molokaart-page .methods-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333333;
}

.method {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.molokaart-page .method-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.method p {
    margin-bottom: 0;
}

.method a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
}

.method a:hover {
    text-decoration: underline;
}

.molokaart-cta {
    text-align: center;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border: 2px solid #ff6b6b;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.instagram-button:hover {
    background: linear-gradient(135deg, #ff5252, #ff1744);
    border-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.molokaart-events {
    width: 100%;
}

.molokaart-page .events-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333333;
}

/* Events styling for light background */
.molokaart-page .events-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.molokaart-page .event-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.molokaart-page .event-card:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.molokaart-page .event-date {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0.75rem;
    min-width: 80px;
    flex-shrink: 0;
}

.molokaart-page .event-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
    line-height: 1;
}

.molokaart-page .event-month {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.molokaart-page .event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.molokaart-page .event-venue {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 0.25rem;
}

.molokaart-page .event-location {
    font-size: 0.9rem;
    color: #666666;
}

.molokaart-page .lineup-label {
    font-size: 0.8rem;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.molokaart-page .lineup-bands {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.3;
}

.molokaart-page .ticket-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.molokaart-page .ticket-button:hover {
    background: linear-gradient(135deg, #ff5252, #ff1744);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.molokaart-page .ticket-button.unavailable {
    background: rgba(0, 0, 0, 0.1);
    color: #888888;
    cursor: not-allowed;
}

.molokaart-page .ticket-button.unavailable:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: none;
    box-shadow: none;
}

/* Mobile responsive adjustments for MOLOKAART page */
@media (max-width: 768px) {
    .molokaart-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .molokaart-info {
        gap: 1.5rem;
    }
    
    .molokaart-page .methods-title {
        font-size: 1.3rem;
    }

    .molokaart-image {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .molokaart-container {
        padding: 1rem;
    }
    
    .molokaart-content {
        gap: 2rem;
    }
    
    .molokaart-page .molokaart-title {
        font-size: 3rem;
    }
    
    .molokaart-main {
        gap: 2rem;
    }
    
    .method {
        padding: 1.25rem;
    }
    
    .molokaart-page .method-heading {
        font-size: 1rem;
    }
    
    .instagram-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .molokaart-page .events-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .molokaart-page .event-card {
        padding: 1.25rem;
    }
    
    .molokaart-page .event-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .molokaart-page .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        min-width: auto;
    }
    
    .molokaart-page .event-day {
        font-size: 1.25rem;
    }
    
    .molokaart-page .event-title {
        font-size: 1.1rem;
    }
    
    .molokaart-page .event-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .molokaart-page .ticket-button {
        align-self: center;
        width: fit-content;
    }
}

/* ================================
   Video Player Styles
   ================================ */

/* Video Gallery Navigation */
.video-gallery {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    justify-content: flex-start;
}

.video-thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 140px;
    max-width: 160px;
}

.thumbnail-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
}

.video-thumbnail:hover {
    transform: translateY(-2px);
}

.video-thumbnail:hover .thumbnail-image {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail:focus {
    outline: 3px solid #007acc;
    outline-offset: 2px;
    border-radius: 8px;
}

.video-thumbnail.active .thumbnail-image {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4), 0 0 0 3px #ff6b6b;
    transform: translateY(-1px);
}

.video-thumbnail.active .thumbnail-overlay {
    background: rgba(255, 107, 107, 0.2);
}

.video-thumbnail.active .video-title {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 107, 107, 0.3);
}

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

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .thumbnail-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.video-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 0 0.5rem;
}

.thumbnail-play-icon {
    width: 24px;
    height: 24px;
    color: white;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    position: absolute;
}

.video-thumbnail:hover .video-title {
    opacity: 0;
}

.video-thumbnail:hover .thumbnail-play-icon {
    opacity: 1;
    transform: scale(1);
}

.video-item {
    margin: 1.5rem 0 0 0;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
}

/* Video Poster Overlay */
.video-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.video-container.playing .video-poster-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Better object-fit for fullscreen */
.video-container video:fullscreen {
    object-fit: contain;
}

/* Video Controls Overlay */
.video-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: auto; /* Make overlay clickable */
    cursor: pointer;
    z-index: 2; /* Above poster overlay */
}

/* Hide play button when video is playing, but keep overlay clickable */
.video-container.playing .video-controls-overlay {
    background: transparent; /* Remove dark overlay during playback */
}

.video-container.playing .video-play-btn {
    opacity: 0;
    pointer-events: auto; /* Keep functional for keyboard users */
    transition: opacity 0.3s ease;
}

/* Show play button on hover or focus, even when playing */
.video-container:hover .video-play-btn,
.video-container.playing .video-play-btn:focus {
    opacity: 1;
}

/* Ensure focused button is always visible */
.video-play-btn:focus {
    opacity: 1 !important;
    outline: 3px solid #007acc;
    outline-offset: 2px;
}

.video-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    pointer-events: auto;
}

.video-play-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.video-play-btn:focus {
    outline: 3px solid #007acc;
    outline-offset: 2px;
}

.video-play-btn.playing .video-controls-overlay {
    opacity: 0;
}

.video-play-btn svg {
    width: 48px;
    height: 48px;
    color: #333;
}

.video-play-btn.loading {
    pointer-events: none;
}

.video-play-icon.hidden,
.video-pause-icon.hidden {
    display: none;
}

.video-loading-spinner-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: #333;
    border-radius: 50%;
    animation: video-spinner 1s linear infinite;
}

.video-loading-spinner.hidden {
    display: none;
}

@keyframes video-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Video Controls Bar */
.video-controls-bar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 8px 8px;
    padding: 0.75rem;
    margin-top: -1px;
}

.video-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 0.75rem;
    position: relative;
}

.video-progress-container:hover {
    background: rgba(0, 0, 0, 0.15);
}

.video-progress-container:focus {
    outline: 2px solid #007acc;
    outline-offset: 2px;
}

.video-progress-bar {
    height: 100%;
    background: #007acc;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.video-controls-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-time-controls,
.video-quality-controls,
.video-volume-controls,
.video-action-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-time-controls {
    margin-right: auto;
}

.video-time-display {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.875rem;
    color: #555;
    min-width: 80px;
}

/* Quality Selector */
.quality-selector {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    min-width: 60px;
}

.quality-selector:focus {
    outline: 2px solid #007acc;
    outline-offset: 1px;
}

.quality-selector:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Volume Controls */
.volume-btn {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.volume-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.volume-btn:focus {
    outline: 2px solid #007acc;
    outline-offset: 1px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #007acc;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #007acc;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.volume-slider:focus {
    outline: 2px solid #007acc;
    outline-offset: 2px;
}

/* Action Controls */
.fullscreen-btn {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.fullscreen-btn:focus {
    outline: 2px solid #007acc;
    outline-offset: 1px;
}

.fullscreen-btn svg {
    width: 20px;
    height: 20px;
    color: #555;
}

/* Video Description */
.video-description {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-gallery {
        flex-direction: column;
        gap: 1rem;
        margin: 1rem 0;
        align-items: center;
    }

    .video-thumbnail {
        min-width: 120px;
        max-width: 140px;
    }

    .thumbnail-play-icon {
        width: 20px;
        height: 20px;
    }

    .video-title {
        font-size: 0.8rem;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
    }

    .video-play-btn svg {
        width: 36px;
        height: 36px;
    }

    .video-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .video-time-controls,
    .video-quality-controls,
    .video-volume-controls,
    .video-action-controls {
        justify-content: space-between;
    }

    .video-volume-controls {
        order: 1;
    }

    .video-quality-controls {
        order: 2;
    }

    .video-action-controls {
        order: 3;
        justify-content: center;
    }

    .volume-slider {
        flex: 1;
        margin-left: 0.5rem;
    }
}