/* =========================================================
   SKYMENU MATHEMATICS - SINGLE VIDEO WATCH PAGE
========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #172033;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.watch-page {
    padding: 55px 20px 70px;
}

.watch-container {
    width: 100%;
    max-width: 1250px;
    margin: auto;
}

.watch-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 35px;
    align-items: start;
}

.watch-video {
    width: 100%;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.watch-video video {
    display: block;
    width: 100%;
    height: auto;
    min-height: 450px;
    background: #000;
    object-fit: contain;
}

.video-information {
    background: #fff;
    margin-top: 22px;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 5px 22px rgba(20, 30, 60, 0.06);
}

.video-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1769aa;
    margin-bottom: 10px;
}

.video-information h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
    color: #172033;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ebf1;
    color: #687386;
    font-size: 14px;
}

.video-description {
    padding-top: 22px;
}

.video-description h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.video-description p {
    margin: 0;
    color: #171717;
    line-height: 1.8;
    font-size: 24px;
}

.video-sidebar {
    position: sticky;
    top: 25px;
}

.sidebar-box {
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 5px 22px rgba(20, 30, 60, 0.07);
}

.sidebar-title {
    border-bottom: 1px solid #e8ebf1;
    padding-bottom: 20px;
    margin-bottom: 15px;
}

.sidebar-title .badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #1769aa;
    letter-spacing: .8px;
    margin-bottom: 8px;
}

.sidebar-title h2 {
    margin: 0 0 7px;
    font-size: 24px;
}

.sidebar-title p {
    margin: 0;
    color: #6d7788;
    font-size: 14px;
    line-height: 1.6;
}

.recent-videos {
    display: flex;
    flex-direction: column;
}

.recent-video {
    display: flex;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
    transition: .2s ease;
}

.recent-video:hover {
    transform: translateX(3px);
}

.recent-thumbnail {
    position: relative;
    flex: 0 0 105px;
    width: 105px;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
    background: #101827;
}

.recent-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1769aa;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
}

.recent-video-info {
    min-width: 0;
}

.recent-video-info h3 {
    margin: 0 0 7px;
    font-size: 14px;
    line-height: 1.35;
    color: #202a3a;
}

.recent-video-info span {
    color: #7b8492;
    font-size: 12px;
}

.all-videos-button {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 12px 15px;
    background: #1769aa;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.all-videos-button:hover {
    opacity: .9;
}

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

.comments-heading {
    margin-bottom: 20px;
}

.comments-heading h2 {
    margin: 0 0 7px;
    font-size: 28px;
}

.comments-heading p {
    margin: 0;
    color: #6d7788;
}

.comment-message {
    padding: 15px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #eef7ff;
    color: #1769aa;
    font-size: 14px;
}

.comment-form-box {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 5px 22px rgba(20, 30, 60, 0.06);
}

.comment-form-box h3 {
    margin: 0 0 22px;
    font-size: 21px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

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

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #dce1e9;
    border-radius: 8px;
    padding: 13px 14px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: .2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1769aa;
    box-shadow: 0 0 0 3px rgba(23, 105, 170, .08);
}

.form-group textarea {
    resize: vertical;
}

.comment-button {
    border: 0;
    background: #1769aa;
    color: #fff;
    padding: 13px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.comment-button:hover {
    opacity: .9;
}

.existing-comments {
    margin-top: 25px;
}

.comment {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(20, 30, 60, 0.04);
}

.comment-avatar {
    width: 43px;
    height: 43px;
    min-width: 43px;
    border-radius: 50%;
    background: #1769aa;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.comment-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-top strong {
    font-size: 14px;
}

.comment-top span {
    font-size: 12px;
    color: #8a93a1;
}

.comment-content p {
    margin: 0;
    color: #5e6979;
    line-height: 1.7;
    font-size: 14px;
}

.no-comments {
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    color: #737d8c;
}

.watch-cta {
    padding: 65px 20px;
    background: #eef4fa;
}

.cta-content {
    text-align: center;
    max-width: 750px;
    margin: auto;
}

.cta-content h2 {
    margin: 0 0 12px;
    font-size: 30px;
}

.cta-content p {
    margin: 0 auto 25px;
    color: #667184;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-primary,
.cta-secondary {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.cta-primary {
    background: #1769aa;
    color: #fff;
}

.cta-secondary {
    background: #fff;
    color: #1769aa;
    border: 1px solid #d6e0eb;
}

@media (max-width: 1000px) {
    .watch-main {
        grid-template-columns: 1fr;
    }

    .video-sidebar {
        position: static;
    }

    .recent-videos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }
}

@media (max-width: 700px) {
    .watch-page {
        padding: 30px 14px 50px;
    }

    .watch-video video {
        min-height: 230px;
    }

    .video-information {
        padding: 22px;
    }

    .video-information h1 {
        font-size: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .comment-form-box {
        padding: 22px;
    }

    .recent-videos {
        grid-template-columns: 1fr;
    }

    .sidebar-box {
        padding: 20px;
    }

    .comment {
        padding: 17px;
    }

    .comment-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .cta-content h2 {
        font-size: 25px;
    }
}
