/* Player Component Styles */
.player-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: 1.5rem;
    overflow-y: auto;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    display: block;
    margin-bottom: 1.5rem;
}

/* Light mode video container background */
[data-theme="light"] .video-container {
    background: #f1f5f9;
    box-shadow: var(--shadow-md);
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    position: relative;
    z-index: 1;
    display: block;
}

/* Light mode video player background */
[data-theme="light"] #videoPlayer {
    background: #e2e8f0;
}

.error-message {
    margin-top: 0;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--error);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #fecaca;
    display: none;
}

.error-message.show {
    display: block;
}

/* Light mode error message */
[data-theme="light"] .error-message {
    background: rgba(239, 68, 68, 0.05);
    color: #dc2626;
}

/* Fullscreen Toggle Button */
.fullscreen-toggle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    color: white;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    pointer-events: auto;
}

.fullscreen-toggle-btn.show {
    opacity: 1;
    visibility: visible;
}

.fullscreen-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.fullscreen-toggle-btn:active {
    transform: scale(0.98);
}

/* Light mode fullscreen button */
[data-theme="light"] .fullscreen-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .fullscreen-toggle-btn:hover {
    background: white;
    color: var(--accent);
}

/* Fullscreen Styles */
.video-container:fullscreen,
.video-container:-webkit-full-screen,
.video-container:-moz-full-screen {
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    margin: 0 !important;
}

.video-container:fullscreen #videoPlayer,
.video-container:-webkit-full-screen #videoPlayer,
.video-container:-moz-full-screen #videoPlayer {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Light mode fullscreen video container */
[data-theme="light"] .video-container:fullscreen,
[data-theme="light"] .video-container:-webkit-full-screen,
[data-theme="light"] .video-container:-moz-full-screen {
    background: #000 !important;
}

/* Radio Logo Styles */
.radio-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    animation: fadeInScale 0.3s ease;
}

.radio-logo-wrapper {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.radio-logo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 24px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
    overflow: hidden;
    pointer-events: auto;
    animation: pulseShadow 2s infinite;
}

/* Light mode radio logo content */
[data-theme="light"] .radio-logo-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

@keyframes pulseShadow {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(249, 115, 22, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

/* Light mode pulse animation */
[data-theme="light"] .radio-logo-content {
    animation: pulseShadowLight 2s infinite;
}

@keyframes pulseShadowLight {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.3);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(249, 115, 22, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

.radio-logo-wrapper:hover .radio-logo-content {
    animation: pulseShadow 1s infinite;
    transform: scale(1.02);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

/* Light mode radio logo hover */
[data-theme="light"] .radio-logo-wrapper:hover .radio-logo-content {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: transparent;
}

.radio-logo {
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    border-radius: 20px;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
    display: block;
}

.radio-logo-wrapper:hover .radio-logo {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.05);
}

.station-name {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 40px;
    backdrop-filter: blur(8px);
    z-index: 3;
    transition: all var(--transition-normal);
}

/* Light mode station name */
[data-theme="light"] .station-name {
    text-shadow: none;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
}

.radio-logo-wrapper:hover .station-name {
    transform: translateY(-2px);
    background: rgba(249, 115, 22, 0.2);
    backdrop-filter: blur(12px);
}

/* Light mode station name hover */
[data-theme="light"] .radio-logo-wrapper:hover .station-name {
    background: rgba(249, 115, 22, 0.15);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Slideshow Styles */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1222 100%);
    overflow: hidden;
    z-index: 15;
}

/* Light mode slideshow container */
[data-theme="light"] .slideshow-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slideshow-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.slideshow-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slideshow-slide:hover .slideshow-image {
    transform: scale(1.05);
}

.slideshow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 40px 20px 20px;
    text-align: center;
    color: white;
    pointer-events: none;
}

/* Light mode slideshow caption */
[data-theme="light"] .slideshow-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.slideshow-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Light mode slideshow caption text */
[data-theme="light"] .slideshow-caption h3,
[data-theme="light"] .slideshow-caption p {
    color: white;
}

.slideshow-caption p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Navigation Buttons - Smaller and More Transparent */
.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 20;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Light mode navigation buttons */
[data-theme="light"] .slideshow-prev,
[data-theme="light"] .slideshow-next {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.6);
}

.slideshow-prev {
    left: 15px;
}

.slideshow-next {
    right: 15px;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: rgba(249, 115, 22, 0.6);
    border-color: rgba(249, 115, 22, 0.4);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

/* Light mode navigation buttons hover */
[data-theme="light"] .slideshow-prev:hover,
[data-theme="light"] .slideshow-next:hover {
    background: rgba(249, 115, 22, 0.7);
    color: white;
}

/* Dots - Horizontal on Bottom Left */
.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 20;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Light mode dots */
[data-theme="light"] .slideshow-dot {
    background: rgba(0, 0, 0, 0.3);
}

.slideshow-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

.slideshow-dot:hover {
    background: var(--accent);
    transform: scale(1.2);
}

/* Light mode active dot */
[data-theme="light"] .slideshow-dot.active {
    background: var(--accent);
}

/* Responsive */
@media (max-width: 640px) {
    .player-area {
        padding: 0.8rem;
    }
    
    .video-container {
        margin-bottom: 0.8rem;
        border-radius: 16px;
    }
    
    .fullscreen-toggle-btn {
        bottom: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .radio-logo {
        max-width: 120px;
        max-height: 120px;
    }
    
    .radio-logo-content {
        padding: 15px;
        border-radius: 20px;
    }
    
    .station-name {
        font-size: 0.9rem;
        margin-top: 15px;
        padding: 6px 16px;
    }
    
    /* Slideshow mobile */
    .slideshow-prev,
    .slideshow-next {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .slideshow-prev {
        left: 10px;
    }
    
    .slideshow-next {
        right: 10px;
    }
    
    .slideshow-caption h3 {
        font-size: 1rem;
    }
    
    .slideshow-caption p {
        font-size: 0.7rem;
    }
    
    .slideshow-dots {
        bottom: 15px;
        left: 15px;
        gap: 6px;
    }
    
    .slideshow-dot {
        width: 6px;
        height: 6px;
    }
    
    .slideshow-dot.active {
        width: 18px;
    }
}

@media (max-width: 480px) {
    .player-area {
        padding: 0.6rem;
    }
    
    .video-container {
        margin-bottom: 0.6rem;
        border-radius: 12px;
    }
    
    .fullscreen-toggle-btn {
        bottom: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .radio-logo {
        max-width: 100px;
        max-height: 100px;
    }
    
    .radio-logo-content {
        padding: 12px;
        border-radius: 16px;
    }
    
    .station-name {
        font-size: 0.8rem;
        margin-top: 12px;
        padding: 5px 12px;
    }
    
    /* Slideshow mobile small */
    .slideshow-prev,
    .slideshow-next {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .slideshow-prev {
        left: 8px;
    }
    
    .slideshow-next {
        right: 8px;
    }
    
    .slideshow-caption {
        padding: 30px 15px 15px;
    }
    
    .slideshow-caption h3 {
        font-size: 0.85rem;
    }
    
    .slideshow-caption p {
        font-size: 0.6rem;
    }
    
    .slideshow-dots {
        bottom: 12px;
        left: 12px;
        gap: 5px;
    }
    
    .slideshow-dot {
        width: 5px;
        height: 5px;
    }
    
    .slideshow-dot.active {
        width: 14px;
    }
}

@media (min-width: 1025px) {
    .player-area {
        padding: 1.5rem;
    }
    
    .video-container {
        border-radius: 24px;
        margin-bottom: 1.5rem;
    }
    
    .fullscreen-toggle-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

