/* --- General & Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6e48aa;
    --secondary-color: #9461c1;
    --dark-color: #333;
    --light-color: #fff;
    --body-bg: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #444;
    --heading-color: #2c3e50;
    --shadow: 0 5px 15px rgba(0,0,0,0.08);
    --border-radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* --- Header --- */
.site-header {
    background: var(--light-color);
    box-shadow: var(--shadow);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .logo span {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.site-header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.site-header nav ul li {
    margin-left: 30px;
}

.site-header nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.site-header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.site-header nav ul li a:hover::after,
.site-header nav ul li a.active::after {
    width: 100%;
}

.site-header form input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
}

.site-header form button {
    padding: 8px 15px;
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.site-header form button:hover {
    transform: scale(1.05);
}

/* --- Main Player --- */
.main-player-section {
    background: var(--dark-color);
    padding: 0;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Content Sections & Grids --- */
.content-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.video-grid, .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Video & News Cards --- */
.video-thumbnail, .news-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    display: flex;
    flex-direction: column;
}

.video-thumbnail:hover, .news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.video-info, .news-item .news-content {
    padding: 20px;
    flex-grow: 1;
}

.video-info h4, .news-item h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--heading-color);
}

.news-item h3 a {
    color: inherit;
}

.video-info p, .news-date {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.news-date {
    margin-bottom: 10px;
}

/* --- Buttons & Forms --- */
.btn, .login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover, .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(110, 72, 170, 0.4);
}

.site-header nav .login-btn {
    width: auto;
    padding: 8px 22px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    margin: 60px auto;
    padding: 40px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- Footer --- */
.site-footer {
    background: #2c3e50;
    color: #e0e0e0;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

/* --- Utility & Other --- */
.error-message {
    color: #d8000c;
    background-color: #ffbaba;
    padding: 10px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    text-align: center;
}

/* --- Page-specific --- */
.news-container, .page-content-container {
    background: var(--card-bg);
    padding: 30px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 20px auto;
}

.news-title, .page-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.news-meta {
    font-size: 1em;
    color: #777;
    margin-bottom: 25px;
}

.news-content, .page-content {
    line-height: 1.8;
}

/* --- Watch Page & Related Videos --- */
.watch-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.video-main-content {
    flex: 1;
    min-width: 0; /* Prevents flexbox overflow */
}

.video-sidebar {
    flex-basis: 320px; /* Make sidebar narrower */
    flex-shrink: 0;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.video-player-watch {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.video-player-watch iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-title-watch {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.comments-section {
    margin-top: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

.comment-list .comment {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.comment-meta {
    font-weight: 600;
    margin-bottom: 5px;
}

.comment-meta span {
    font-weight: 400;
    color: #777;
    font-size: 0.9em;
}

.premium-notice {
    text-align: center;
    padding: 40px;
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 12px;
}

.related-videos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-video-link {
    display: flex;
    align-items: flex-start;
    gap: 10px; /* Adjust gap for smaller thumbnail */
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.related-video-link:hover {
    background-color: #f1f1f1;
}

.related-video-link img {
        width: 100px;  /* Change this value */
        height: 56px;   /* Change this value */
       object-fit: cover;
       border-radius: 8px;
      flex-shrink: 0;
}

.related-video-link span {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}