/* General Styles and Reset */
body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif; /* Using Inter as the main font */
    background-color: #000; /* Black background for the sides */
    color: #333;
    line-height: 1.6;
}

/* Main wrapper for the site, centers content and creates the black side effect */
.site-wrapper {
    max-width: 1170px; /* Fixed width for desktop */
    margin: 0 auto; /* Center content */
    background-color: #fff; /* White background for main content */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15); /* Subtle shadow to highlight content */
    border-radius: 8px; /* Rounded borders for the main container */
    overflow: hidden; /* Ensures rounded borders are applied correctly */
}

/* Container for internal content, for consistent padding */
.container {
    width: 100%; /* Occupies full available width within .site-wrapper */
    max-width: 1100px; /* So the slider doesn't exceed this width and has some margin */
    margin: 0 auto;
    padding: 20px; /* Internal padding for content */
    box-sizing: border-box; /* Include padding in width */
}

/* Header */
.header {
    background-color: #f8f8f8;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Adjusted padding for the header */
}

.header .logo img {
    max-height: 60px; /* Adjust logo size */
    width: auto;
    border-radius: 5px; /* Rounded borders for the logo */
}

.header .social-media .social-icon {
    margin-left: 18px;
    color: #555;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.header .social-media .social-icon:hover {
    color: #007bff; /* Color on hover */
}

/* Styles for social media icons */
.social-media .fab {
    font-size: 1.5em; /* Larger icon size */
    color: #555;
    transition: color 0.3s ease;
}

.social-media .fa-youtube:hover {
    color: #FF0000; /* YouTube Red */
}
.social-media .fa-instagram:hover {
    color: #E1306C; /* Instagram Pink/Purple */
}
.social-media .fa-facebook:hover {
    color: #1877F2; /* Facebook Blue */
}
.social-media .fa-tiktok:hover {
    color: #000000; /* TikTok Black (or white for dark mode) */
}


/* Slider */
.slider {
    padding: 20px 0;
    text-align: center;
    background-color: #f0f0f0; /* A light background for the slider */
    position: relative; /* For positioning navigation arrows */
}

.slider-inner {
    display: flex;
    overflow: hidden; /* Hides inactive images */
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.slider-item {
    min-width: 100%; /* Each slide occupies 100% of the container width */
    transition: transform 0.5s ease-in-out; /* Smooth transition for movement */
    display: flex; /* Ensures the image is centered within the item */
    justify-content: center;
    align-items: center;
}

.slider-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Rounded borders for slider images */
}

.slider-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 50%; /* Circular buttons */
    z-index: 10; /* Ensures they are above the images */
    transition: background-color 0.3s ease;
}

.slider-nav-button:hover {
    background-color: rgba(0,0,0,0.8);
}

.slider-nav-button.prev {
    left: 10px;
}

.slider-nav-button.next {
    right: 10px;
}


/* Main Content (main-content) */
.main-content {
    padding-top: 30px;
    padding-bottom: 30px;
}

.block {
    margin-bottom: 40px;
    background-color: #fff; /* Ensures white background for each block within content */
    padding: 25px; /* A little more padding for each block */
    border-radius: 8px; /* Rounded borders for blocks */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.block h2, .block h3 {
    color: #222;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* Styles for genre links in block 1 */
.block-1 .genre-link { /* Specific to block 1 */
    color: #222; /* Black text color */
    text-decoration: none; /* No underline by default */
    transition: color 0.3s ease, text-decoration 0.3s ease; /* Transition for hover */
}

.block-1 .genre-link:hover {
    color: grey; /* Changes to grey on hover */
    text-decoration: underline; /* Underline on hover */
}

/* Styles for genre links in the footer */
.footer .genre-links-container .genre-link {
    color: #ccc; /* Text color for links in the footer */
    text-decoration: none; /* No underline by default */
    transition: color 0.3s ease, text-decoration 0.3s ease;
    margin: 0 8px; /* Space between links */
    white-space: nowrap; /* Prevents links from breaking into multiple lines */
}

.footer .genre-links-container .genre-link:hover {
    color: #fff; /* Color on hover in the footer */
    text-decoration: underline; /* Underline on hover */
}

/* Modifications for block 3 */
.block-3 {
    display: flex; /* Keep flex to center content if necessary */
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center content horizontally */
    gap: 30px; /* Space between elements */
    background-color: #f8f8f8; /* Apply specific background color */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); /* Apply specific inner shadow */
    /* Padding and border-radius are inherited from .block */
}

/* Remove the .block-3 .column rule as it's no longer needed */
/*
.block-3 .column {
    flex: 0 0 100%;
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    margin: 0 auto;
}
*/

/* Styles for block 4 image */
.block-4 .full-width-image {
    width: 100%; /* Image will occupy 100% of its container width */
    max-width: 1100px; /* Limits the maximum width of the image so it's not excessively large */
    height: auto; /* Maintains image aspect ratio */
    display: block; /* Removes extra space below the image */
    margin: 0 auto; /* Centers the image horizontally */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 30px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.footer p {
    margin: 0;
    font-size: 0.95em;
    color: #ccc;
}

/* Style for the horizontal line in the footer */
.footer-divider {
    border: 0;
    height: 1px;
    background-color: #444; /* Line color */
    margin: 20px auto; /* Top and bottom margin and centered */
    width: 80%; /* Line width */
    max-width: 400px; /* Maximum line width */
    border-radius: 5px; /* Rounded borders for the line */
}

/* Styles for YouTube videos section */
.youtube-videos-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center; /* Center content */
}

.featured-video {
    width: 100%;
    max-width: 900px; /* Maximum width for featured video */
    margin-bottom: 5px;
    position: relative; /* For positioning play icon */
    cursor: pointer; /* Indicates it's clickable */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.featured-video img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.featured-video .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px; /* Play icon size */
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    transition: transform 0.3s ease, color 0.3s ease;
}

.featured-video:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    color: #ff0000; /* YouTube Red color on hover */
}

.featured-video iframe {
    width: 100%;
    height: 450px; /* Fixed height for featured video */
    border: none;
    border-radius: 8px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 2 columns on desktop, adaptable */
    gap: 20px;
    width: 100%;
    max-width: 900px; /* Maximum width for video grid */
}

.video-item {
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer; /* Indicates it's clickable */
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.video-item img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #ddd;
}

.video-item-title {
    padding: 15px;
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

/* Styles for video modal window */
.video-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed on screen */
    z-index: 1000; /* Above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if content is too large */
    background-color: rgba(0,0,0,0.8); /* Dark semi-transparent background */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Background blur effect */
}

.video-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px; /* Maximum width for the modal */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-modal-content iframe {
    width: 100%;
    height: 500px; /* Iframe height within modal */
    border: none;
    border-radius: 8px;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}


/* Responsive for Mobile */
@media (max-width: 1200px) {
    .site-wrapper {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .site-wrapper {
        width: 100%;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .header {
        border-radius: 0;
    }

    .footer {
        border-radius: 0;
    }

    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .header .social-media {
        margin-top: 15px;
    }

    .header .social-media .social-icon {
        margin: 0 12px;
        font-size: 1em;
    }

    .container {
        padding: 15px;
    }

    .block {
        padding: 20px;
        margin-bottom: 30px;
    }

    .block h2, .block h3 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .block-3 { /* Ensures it's a single column on mobile too */
        flex-direction: column;
        gap: 20px;
    }

    .block-3 .column {
        min-width: unset;
        width: 100%;
    }

    .slider-image {
        padding: 0;
        border-radius: 5px;
    }

    .featured-video iframe {
        height: 250px; /* Adjusts featured video height on mobile */
    }

    .video-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .video-modal-content {
        width: 95%; /* Wider on mobile */
        padding: 10px;
    }

    .video-modal-content iframe {
        height: 280px; /* Iframe height in modal for mobile */
    }

    .close-button {
        font-size: 30px;
        right: 15px;
    }

    .featured-video .play-icon {
        font-size: 60px; /* Play icon size on mobile */
    }
}

/* Additional styles for a neater footer on mobile if necessary */
@media (max-width: 480px) {
    .footer {
        padding: 20px 0;
    }
    .header .logo img {
        max-height: 45px;
    }
}