:root {
    --tf1-blue: #002c91;
    --tf1-red: #e3001b;
    --dark-bg: #111;
    --panel-bg: #1a1a1a;
    --neon-white: #fff;
}

body {
    background-color: var(--dark-bg);
    background-image: radial-gradient(circle at center, #2a2a2a 0%, #000 100%);
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* TV Scanline Overlay */
.tv-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 255, 0, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 999;
}

/* Fake TF1 Logo */
.broadcast-header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    align-items: center;
}

.tf1-logo {
    display: inline-flex;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
    transform: skewX(-10deg);
}

.tf1-logo span {
    padding: 5px 12px;
    color: white;
}

.tf1-logo span:nth-child(1) { background: linear-gradient(180deg, #0055ff, var(--tf1-blue)); }
.tf1-logo span:nth-child(2) { background: white; color: black; }
.tf1-logo span:nth-child(3) { background: linear-gradient(180deg, #ff4d4d, var(--tf1-red)); }

.live-indicator {
    color: var(--tf1-red);
    font-weight: bold;
    animation: pulse 1.5s infinite;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
}

@keyframes pulse {
    0% { opacity: 1; text-shadow: 0 0 10px var(--tf1-red); }
    50% { opacity: 0.5; text-shadow: none; }
    100% { opacity: 1; text-shadow: 0 0 10px var(--tf1-red); }
}

/* Main Content */
.content-wrapper {
    max-width: 700px;
    margin-top: 20px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.show-logo {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 0;
    text-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.show-logo .sept { color: white; }
.show-logo .middle { font-size: 2rem; vertical-align: middle; color: #888; }
.show-logo .huit { color: var(--tf1-red); }

.subtitle {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* TV Panel Form */
.tv-panel {
    background: var(--panel-bg);
    padding: 30px;
    border-top: 4px solid var(--tf1-blue);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}

.tv-panel label {
    color: #ccc;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.tv-input {
    background: #000;
    border: 1px solid #333;
    color: #fff;
    font-family: 'Courier New', monospace;
    border-radius: 0;
    font-size: 1.1rem;
}

.tv-input:focus {
    background: #0a0a0a;
    color: #fff;
    border-color: var(--tf1-blue);
    box-shadow: 0 0 15px rgba(0, 44, 145, 0.5);
}

.tv-btn {
    margin-top: 30px;
    border-radius: 0;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.tv-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(227, 0, 27, 0.6);
}

/* Magic Loading */
.loading-container {
    margin-top: 30px;
    text-align: center;
    background: black;
    padding: 20px;
    border: 1px solid #333;
}

.loader-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 50px;
    margin-bottom: 15px;
}

.bar {
    width: 10px;
    margin: 0 3px;
    background: var(--tf1-blue);
    animation: equalizer 0.5s infinite alternate;
}

.bar:nth-child(2) { animation-delay: 0.1s; background: white; }
.bar:nth-child(3) { animation-delay: 0.2s; background: var(--tf1-red); }
.bar:nth-child(4) { animation-delay: 0.3s; background: white; }
.bar:nth-child(5) { animation-delay: 0.4s; background: var(--tf1-blue); }

@keyframes equalizer {
    0% { height: 5px; }
    100% { height: 100%; }
}

.loading-text {
    font-family: 'Courier New', monospace;
    animation: blink 0.2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Custom Player */
.custom-player-wrapper {
    margin-top: 30px;
    background: linear-gradient(180deg, #222, #111);
    border: 1px solid #444;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.player-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.track-title {
    font-family: 'Courier New', monospace;
    color: #0f0;
    font-size: 0.9rem;
}

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

.control-btn {
    background: none;
    border: 2px solid white;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: white;
    color: black;
    box-shadow: 0 0 15px white;
}

.progress-container {
    flex-grow: 1;
    height: 6px;
    background: #333;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--tf1-red);
    width: 0%;
    box-shadow: 0 0 10px var(--tf1-red);
    transition: width 0.1s linear;
}

.time-display {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #ccc;
    min-width: 100px;
    text-align: right;
}

.glitch-box {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid red;
    color: red;
    font-family: 'Courier New', monospace;
}

/* Play Icon Overlay */
.video-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
    pointer-events: auto;
}

.play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: filter 0.2s ease;
}

.play-overlay:hover svg {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
}

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

/* Share Button Styles */
.share-btn {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.share-btn svg {
    animation: fly 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes fly {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(2px) translateY(-2px) rotate(-5deg);
    }
    50% {
        transform: translateX(0) translateY(-3px) rotate(0deg);
    }
    75% {
        transform: translateX(-2px) translateY(-2px) rotate(5deg);
    }
}

.share-btn:hover svg {
    animation: none;
    transform: translateX(4px) translateY(-4px) rotate(15deg);
}

.dropdown-menu {
    background: var(--panel-bg);
    border: 1px solid #444;
    min-width: 180px;
}

.dropdown-item {
    color: #ccc;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--tf1-blue);
    color: white;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
}
