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

body {
    font-family: sans-serif;
    color: #333;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Image with Blur */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px);
    z-index: -1;
}

.main-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Header and Logo */
.site-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 2px solid #DC143C;
}

.logo {
    max-width: 100%;
    height: auto;
    width: 80%;
    max-width: 1072px;
    display: block;
    margin: 0 auto;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Video Player Section */
.video-player-section {
    position: relative; /* For positioning the close button */
    margin-bottom: 30px;
    text-align: center;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.close-player-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    z-index: 10;
}

.close-player-btn:hover {
    color: #333;
}

.video-player-section h2 {
    margin-bottom: 15px;
    color: #DC143C;
}

#mainVideoPlayer {
    max-width: 100%;
    border: 1px solid #ccc;
    background-color: #000;
}

/* Video List Section */
.video-list-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.video-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.video-item {
    position: relative; /* Needs to be relative for absolute positioning of the icon */
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: calc(50% - 20px);
    min-width: 280px;
}

/* Initially hide videos after the 10th one */
.video-item.hidden-video {
    display: none;
}

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail {
    width: 120px;
    height: auto;
    margin-right: 15px;
    border: 5px solid white;
    outline: 1px solid #DC143C;
    display: block;
}
.thumbnail-placeholder {
    width: 120px;
    height: 68px;
    margin-right: 15px;
    border: 5px solid white;
    outline: 1px solid #DC143C;
    background-color: #eee;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
}

.video-title {
    font-weight: bold;
    color: #DC143C;
    flex-grow: 1;
    /* Add some padding to the right to avoid text going under the icon */
    padding-right: 40px; 
}

/* --- NEW ICON STYLE (ABSOLUTE POSITIONING) --- */
.new-icon {
    position: absolute; /* Position relative to .video-item */
    bottom: 8px; /* Adjust as needed */
    right: 8px; /* Adjust as needed */
    width: 35px; /* Adjust width as needed */
    height: auto;
}


/* Load More Button Style */
.load-more-btn {
    display: block;
    margin: 30px auto 10px;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background-color: #ce202a; /* Crimson Red */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background-color: #bd1d25; /* Darker red on hover */
}


/* Basic Responsive Adjustments */
@media (max-width: 768px) {
    .video-item {
        width: calc(100% - 20px);
    }
    .logo {
        width: 90%;
    }
    .close-player-btn {
        top: 5px;
        right: 10px;
        font-size: 24px;
    }
}

/* --- Footer --- */
.site-footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: #DC143C;
    font-size: 0.9em;
    border-top: 1px solid #eee;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-bottom: 20px;
}

.footer-icon {
    height: 1em;
    width: auto;
    vertical-align: middle;
    margin: 0 5px;
}

.placeholder-image {
    border: 1px dashed #ccc;
}