/* ===== Play TV 4K - Styles Modernes ===== */

/* Reset et base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Safe Area pour mobile (notch, home indicator) */
.safe-area-inset-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Scrollbar personnalisée */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Scrollbar moderne */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 230, 118, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 230, 118, 0.5);
}

/* ===== ANIMATIONS ===== */

/* Animation fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation slide up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation scale in */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation shimmer */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation glow pulse */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 230, 118, 0.6);
    }
}

/* Animation float */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation rotate gradient */
@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Panneaux glassmorphism modernes */
.glass-panel {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation glassmorphism */
.nav-glass {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

/* ===== CARTES ET CONTAINERS MODERNES ===== */

/* Animation d'apparition des cartes */
.content-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.content-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 230, 118, 0.15);
    border-color: rgba(0, 230, 118, 0.3);
}

/* Délai d'animation pour chaque carte */
.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }
.content-card:nth-child(5) { animation-delay: 0.5s; }

/* Channel card moderne */
.channel-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8) 0%, rgba(15, 15, 15, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.channel-card:hover {
    border-color: rgba(0, 230, 118, 0.4);
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.9) 0%, rgba(25, 25, 25, 0.95) 100%);
    box-shadow: 0 15px 35px rgba(0, 230, 118, 0.2);
    transform: translateY(-2px);
}

/* ===== BOUTONS MODERNES ===== */

.btn-primary {
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.5);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 230, 118, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== NAVIGATION MODERNE ===== */

.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00E676, #00C853);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.text-primary::after {
    width: 100%;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link .material-symbols-outlined {
    transition: all 0.3s ease;
}

.nav-link:hover .material-symbols-outlined {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.5));
}

/* Animation pulse pour indicateurs LIVE */
.live-pulse {
    animation: pulse-opacity 2s infinite;
}

.live-pulse-glow {
    animation: pulse-opacity 2s infinite, glowPulse 2s infinite;
}

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

/* Animation equalizer pour radio */
.equalizer-bar {
    animation: equalize 1s infinite alternate;
}

.equalizer-bar:nth-child(2) { animation-delay: 0.2s; }
.equalizer-bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes equalize {
    0% { height: 20%; }
    100% { height: 100%; }
}

/* ===== INPUTS ET FORMULAIRES ===== */

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: #00E676;
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ===== BADGES ===== */

.badge-live {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    color: #fff;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
    animation: live-pulse-glow 2s infinite;
}

.badge-quality {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* ===== MODAL ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100;
    display: none;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.3s ease;
}

/* ===== PLAYER ===== */

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* ===== FILTER BUTTONS ===== */

.filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-btn:hover::before {
    opacity: 0.1;
}

.filter-btn.active {
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
    transform: scale(1.05);
}

/* ===== TOAST NOTIFICATIONS ===== */

.toast {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    z-index: 200;
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(0, 230, 118, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 230, 118, 0.2);
    backdrop-filter: blur(20px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== LOADING SPINNER ===== */

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00E676;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== PRICING CARDS ===== */

.pricing-card {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.05) 0%, rgba(15, 19, 21, 0.95) 100%);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card:hover {
    border-color: rgba(0, 230, 118, 0.4);
    box-shadow: 0 20px 60px rgba(0, 230, 118, 0.3);
    transform: translateY(-4px);
}

/* ===== RADIO CARDS ===== */

.radio-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8) 0%, rgba(15, 15, 15, 0.9) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.radio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.5), transparent, rgba(0, 230, 118, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.radio-card:hover::after {
    opacity: 1;
}

.radio-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.radio-card.playing {
    border: 2px solid #00E676;
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.4);
    animation: glowPulse 2s infinite;
}

/* ===== MINI PLAYER ===== */

.mini-player {
    position: fixed;
    bottom: 5rem;
    left: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, rgba(27, 36, 39, 0.95) 0%, rgba(15, 15, 15, 0.98) 100%);
    backdrop-filter: blur(30px);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 40;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 230, 118, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s ease;
}

/* ===== BACKGROUND EFFECTS ===== */

.bg-gradient-animated {
    background: linear-gradient(-45deg, #0f0f0f, #1a1a1a, #0f1315, #1e1e1e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

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

/* ===== RIPPLE EFFECT ===== */

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #00E676 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* ===== SKELETON LOADING ===== */

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 0.5rem;
}

/* ===== TEXT GRADIENT ===== */

.text-gradient {
    background: linear-gradient(135deg, #00E676 0%, #00C853 50%, #009624 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ICON GLOW ===== */

.icon-glow {
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.6));
}

/* ===== CARD HOVER EFFECT ===== */

.card-3d {
    perspective: 1000px;
}

.card-3d-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(10deg) rotateX(5deg);
}

/* ===== BODY HEIGHT MINIMUM ===== */

body {
    min-height: max(884px, 100dvh);
}

/* ===== RESPONSIVE UTILITIES ===== */

@media (max-width: 640px) {
    .text-responsive-xl {
        font-size: 1.25rem;
    }

    .text-responsive-lg {
        font-size: 1.125rem;
    }
}

/* ===== DARK MODE THEME COLORS ===== */

:root {
    --primary: #00E676;
    --primary-dark: #00C853;
    --primary-light: #00E676;
    --bg-dark: #0f0f0f;
    --bg-card: rgba(30, 30, 30, 0.8);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}
