/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', 'Georgia', serif;
    background: black;
    color: red;
    min-height: 100vh;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Adblocker Warning Overlay */
.adblocker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.adblocker-overlay.hidden {
    display: none;
}

.warning-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 3px solid #ff0000;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    animation: patriotPulse 2s infinite;
}

.warning-content h2 {
    color: #ff0000;
    font-family: 'Times New Roman', 'Georgia', serif;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: flagWave 3s ease-in-out infinite;
}

.warning-content p {
    color: #ffffff;
    font-family: 'Times New Roman', 'Georgia', serif;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.continue-button {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Times New Roman', 'Georgia', serif;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.continue-button:hover {
    background: linear-gradient(45deg, #ff3333, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}

.continue-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.4);
}

@keyframes patriotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes flagWave {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

@keyframes fadeOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.9); }
}

/* Top Navigation */
.top-nav {
    position: relative;
    text-align: center;
    padding: 20px 0 10px 0;
    z-index: 2000;
}

.nav-link {
    color: red;
    text-decoration: none;
    font-size: 12px;
    font-family: 'Times New Roman', 'Georgia', serif;
    margin: 0 15px;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link:active {
    color: yellow;
    opacity: 1;
    text-decoration: none;
}

/* Body wrapper to account for fixed nav */
.main-content {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Sidebar Layouts - Responsive Scaling 
   - Uses viewport width (vw) units for dynamic scaling
   - Has min/max constraints to prevent too small/large sizes
   - Graceful degradation through multiple breakpoints
   - Sidebars scale smoothly with browser window resizing
*/
.left-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 12vw; /* 12% of viewport width instead of fixed 180px */
    min-width: 160px; /* Minimum width to prevent too small */
    max-width: 220px; /* Maximum width to prevent too large */
    height: 100vh;
    background: rgba(255, 0, 0, 0.05);
    border-right: 1px solid rgba(255, 0, 0, 0.2);
    overflow-y: auto;
    z-index: 500;
    padding: 10px;
    transition: width 0.3s ease;
}

.right-sidebar {
    position: fixed;
    right: 0;
    top: 245px; /* Start below floating video (60px + 169px + 16px gap) */
    width: 13vw; /* 13% of viewport width instead of fixed 200px */
    min-width: 180px; /* Minimum width to prevent too small */
    max-width: 240px; /* Maximum width to prevent too large */
    height: calc(100vh - 245px); /* Adjust height to fit remaining space */
    background: rgba(255, 0, 0, 0.05);
    border-left: 1px solid rgba(255, 0, 0, 0.2);
    overflow-y: auto;
    z-index: 500; /* Back to normal, no need to compete with video */
    padding: 10px;
    transition: width 0.3s ease;
}

.ad-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

/* Left sidebar banner ad - Responsive */
.banner-ad {
    background: rgba(255, 0, 0, 0.1);
    border: 2px dashed red;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    height: calc(100vh - 40px); /* Full height minus padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-ad h3 {
    color: red;
    font-size: clamp(0.9rem, 2vw, 1.1rem); /* Responsive font size */
    margin-bottom: 15px;
}

.banner-ad img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.banner-ad p {
    color: #ff6666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.banner-space {
    background: rgba(0, 0, 0, 0.3);
    color: #ff9999;
    padding: 40px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 0, 0, 0.3);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right sidebar small ads - Responsive */
.small-ad {
    background: rgba(255, 0, 0, 0.1);
    border: 1px dashed red;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.small-ad h4 {
    color: red;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem); /* Responsive font size */
    margin-bottom: 8px;
}

.small-ad img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.ad-placeholder {
    background: rgba(255, 0, 0, 0.1);
    border: 1px dashed red;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.ad-placeholder h3 {
    color: red;
    font-size: 1rem;
    margin-bottom: 10px;
}

.ad-placeholder p {
    color: #ff6666;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.ad-space {
    background: rgba(0, 0, 0, 0.3);
    color: #ff9999;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 0, 0, 0.3);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Advertisement Image Styling */
.banner-ad-link {
    display: block;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.banner-ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-ad-link:hover .banner-ad-image {
    border-color: red;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.ad-block-link {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ad-block-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ad-block-link:hover .ad-block-image {
    border-color: #ff6666;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

.ad-block-link:active .ad-block-image {
    transform: scale(1.02);
    transition: all 0.1s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-left: clamp(200px, calc(12vw + 20px), 240px); /* Responsive left margin */
    margin-right: clamp(220px, calc(13vw + 20px), 260px); /* Responsive right margin */
    transition: margin 0.3s ease;
}

/* Header section styling */
.song-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.album-cover {
    flex-shrink: 0;
}

.cover-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid red;
    background: rgba(255, 0, 0, 0.1);
}

.header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.song-title {
    font-size: 3rem;
    color: red;
    margin-bottom: 10px;
    font-weight: bold;
}

.artist-name {
    font-size: 1.8rem;
    color: #ff6666;
    margin-bottom: 30px;
    font-style: italic;
}

.song-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.label {
    font-size: 0.9rem;
    color: #ff9999;
    text-transform: uppercase;
    font-weight: bold;
}

.value {
    font-size: 1.1rem;
    color: red;
}

.song-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #ff6666;
}

/* Responsive header */
@media (max-width: 768px) {
    .song-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .cover-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .song-title {
        font-size: 2.5rem;
    }
    
    .artist-name {
        font-size: 1.5rem;
    }
}

/* Floating Stock Ticker - TradingView Widget */
.stock-ticker {
    position: fixed;
    top: 10px;
    right: 20px;
    width: 300px;
    height: 40px;
    z-index: 1500;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
}

.tradingview-widget-container {
    width: 100%;
    height: 100%;
}

.custom-stock-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    height: 100%;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
}

.stock-symbol {
    color: #ff4444;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.stock-name {
    color: #ccc;
    flex: 1;
    margin-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stock-price {
    color: #fff;
    font-weight: bold;
    margin-right: 8px;
    transition: transform 0.4s ease, color 0.4s ease;
}

.stock-change {
    font-size: 10px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.stock-change.positive {
    color: #00ff00;
}

.stock-change.negative {
    color: #ff4444;
}

.tradingview-widget-container__widget {
    width: 100%;
    height: 100%;
}

/* Floating Video Player - Enhanced with dramatic "throw" effects */
.floating-video {
    position: fixed;
    top: 60px; /* Moved down to accommodate TradingView widget */
    right: 20px; /* Align with stock ticker */
    width: 300px;
    height: 169px; /* 16:9 aspect ratio for 300px width */
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid red;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    transform-origin: center center;
    animation: floatGently 6s ease-in-out infinite;
}

@keyframes floatGently {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-3px) rotate(0.5deg); 
    }
}

.floating-video:hover {
    transform: scale(1.15) rotate(2deg) translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.2);
    border-color: #ff6666;
    z-index: 1001;
    animation: none; /* Stop floating animation on hover */
}

.floating-video:active {
    transform: scale(1.08) rotate(1deg) translateY(-4px);
    transition: all 0.1s ease;
}

.video-mini-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    background: black;
    border-radius: 8px;
    overflow: hidden;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.floating-video:hover .thumbnail-image {
    filter: brightness(1.1) contrast(1.05) saturate(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-overlay:hover {
    background: rgba(255, 0, 0, 0.2);
}

.play-button {
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.play-icon {
    font-size: 3rem;
    color: red;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.play-button:hover .play-icon {
    transform: scale(1.2);
    color: #ff6666;
}

.video-title {
    font-size: 0.9rem;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.play-button:hover .video-title {
    color: #ffcccc;
}

/* Remove old video styles that are no longer needed */
.video-mini-container iframe {
    display: none;
}

.floating-video .video-fallback {
    display: none;
}

.floating-video .youtube-link {
    display: none;
}

/* Enhanced Responsive Behavior for Sidebars */
@media (max-width: 1600px) {
    .left-sidebar {
        width: 10vw;
        min-width: 140px;
    }
    
    .right-sidebar {
        width: 11vw;
        min-width: 160px;
    }
    
    .container {
        margin-left: clamp(180px, calc(10vw + 20px), 200px);
        margin-right: clamp(200px, calc(11vw + 20px), 220px);
    }
}

@media (max-width: 1400px) {
    .left-sidebar {
        width: 8vw;
        min-width: 120px;
    }
    
    .right-sidebar {
        width: 9vw;
        min-width: 140px;
    }
    
    .container {
        margin-left: clamp(160px, calc(8vw + 20px), 180px);
        margin-right: clamp(180px, calc(9vw + 20px), 200px);
    }
}

@media (max-width: 1200px) {
    .left-sidebar, .right-sidebar {
        display: none;
    }
    
    .container {
        margin-left: 20px;
        margin-right: 20px;
        max-width: 800px;
    }
    
    .floating-video {
        right: 20px;
    }
    
    .stock-ticker {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .stock-ticker {
        width: 250px;
        height: 35px;
        right: 10px;
    }
    
    .floating-video {
        width: 250px;
        height: 141px;
        top: 55px;
        right: 10px;
    }
    
    .container {
        margin-left: 15px;
        margin-right: 15px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .stock-ticker {
        width: 200px;
        height: 30px;
        right: 10px;
    }
    
    .floating-video {
        width: 200px;
        height: 113px;
        top: 50px;
        right: 10px;
    }
}

/* Comical Bottom Banner Ad */
.bottom-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(45deg, #ff0000, #ff6600, #ffff00, #00ff00, #0066ff, #6600ff);
    background-size: 400% 400%;
    animation: rainbowShift 3s ease-in-out infinite;
    border-top: 3px solid gold;
    box-shadow: 0 -5px 20px rgba(255, 0, 0, 0.5);
    z-index: 3000;
    padding: 10px 0;
    font-family: Arial, sans-serif;
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.banner-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 10px;
    overflow-x: auto;
}

.ad-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid gold;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ad-item:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.7);
    background: rgba(255, 215, 0, 0.2);
}

.ad-image {
    width: 60px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid gold;
    object-fit: cover;
}

.ad-text {
    flex: 1;
}

.ad-text h4 {
    color: gold;
    font-size: 0.8rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.ad-text p {
    color: white;
    font-size: 0.7rem;
    margin: 2px 0 0 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.banner-close {
    position: absolute;
    top: 5px;
    right: 10px;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.banner-close:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.2);
}

/* Hide banner when closed */
.bottom-banner.hidden {
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

/* Responsive bottom banner */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        gap: 5px;
        padding: 0 10px;
    }
    
    .ad-item {
        min-width: 180px;
        padding: 6px 10px;
    }
    
    .ad-image {
        width: 50px;
        height: 35px;
    }
    
    .ad-text h4 {
        font-size: 0.7rem;
    }
    
    .ad-text p {
        font-size: 0.6rem;
    }
}

/* Lyrics container */
.lyrics-container {
    background: rgba(255, 0, 0, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.verse, .chorus {
    margin-bottom: 30px;
}

.chorus {
    padding-left: 20px;
    border-left: 4px solid red;
}

/* Line styles */
.line {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.2s ease; /* Faster transition */
    cursor: pointer;
    position: relative;
}

.line:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Verse structure styles */
.verse {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    position: relative;
}

.verse:last-child {
    border-bottom: none;
}

.verse-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff6666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    font-family: 'Arial', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.verse-header:hover {
    opacity: 1;
    color: #ff0000;
    transform: translateX(5px);
    transition: all 0.2s ease;
}

/* Optional: Add some visual separation between verses */
.verse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, transparent);
}

.lyric-text {
    font-size: 1.3rem;
    font-weight: 500;
    display: block;
}

.line:hover .lyric-text {
    color: #ff6666;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Tooltip styles - Improved positioning */
.tooltip {
    position: fixed; /* Changed from absolute to fixed for better positioning */
    background: rgba(0, 0, 0, 0.95);
    color: red;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    max-width: 280px; /* Reduced max width */
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    z-index: 2000; /* Higher z-index to appear above sidebars */
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease; /* Faster transition */
    border: 2px solid red;
    line-height: 1.4;
    pointer-events: none; /* Prevent tooltip from interfering with mouse events */
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid red;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .song-title {
        font-size: 2rem;
    }
    
    .lyric-text {
        font-size: 1.1rem;
    }
    
    .lyrics-container {
        padding: 20px;
    }
    
    .line:hover {
        transform: translateX(5px);
    }
    
    .tooltip {
        max-width: 250px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .song-title {
        font-size: 1.8rem;
    }
    
    .artist-name {
        font-size: 1.2rem;
    }
    
    .lyric-text {
        font-size: 1rem;
    }
}
