/* ============================================ */
/* NONTONSINI - WATCH PAGE STYLES */
/* ============================================ */

/* Video Player */
.video-player-container {
    background: #000;
    width: 100%;
}

/* Series Navigation */
.series-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.series-link {
    background: #17a2b8;
    color: #fff;
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.series-link:hover {
    background: #138496;
    color: #fff;
}
.autoplay-tag {
    background: rgba(255,193,7,0.15);
    color: #ffc107;
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255,193,7,0.3);
}

/* Video Title */
.video-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 12px;
}

/* Actions Bar */
.video-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.video-stats {
    display: flex;
    gap: 15px;
    color: #aaa;
    font-size: 0.85rem;
}
.video-stats i {
    margin-right: 4px;
    color: #666;
}
.video-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Buttons */
.btn-like {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-like:hover {
    background: rgba(255,255,255,0.12);
}
.btn-like.liked {
    background: rgba(255,0,0,0.15);
    border-color: #f00;
    color: #f00;
}
.btn-share {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-share:hover {
    background: rgba(255,255,255,0.12);
}
.btn-dl {
    background: #28a745;
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-dl:hover {
    background: #218838;
    color: #fff;
}

/* Description */
.video-desc {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
    color: #ccc;
    line-height: 1.6;
    font-size: 0.93rem;
}
.video-desc p {
    margin: 0;
    white-space: pre-wrap;
}

/* ============================================ */
/* COMMENTS */
/* ============================================ */
.comment-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}
.comment-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.comment-heading i {
    color: #f00;
    margin-right: 8px;
}
.comment-count {
    background: #f00;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 4px;
}
.comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.comment-input {
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 0.88rem;
    outline: none;
    transition: border 0.2s;
}
.comment-input:focus {
    border-color: #f00;
}
.comment-input-name {
    width: 140px;
}
.comment-input-text {
    flex: 1;
    min-width: 200px;
}
.comment-submit {
    background: #f00;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
}
.comment-submit:hover {
    background: #c00;
}
.comment-list {
    display: flex;
    flex-direction: column;
}
.comment-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    animation: commentFadeIn 0.3s ease;
}
.comment-item:last-child {
    border-bottom: none;
}
@keyframes commentFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.comment-body {
    flex: 1;
    min-width: 0;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.comment-author {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}
.comment-time {
    color: #666;
    font-size: 0.72rem;
}
.comment-text {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 6px;
    word-break: break-word;
}
.comment-like-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.comment-like-btn:hover {
    color: #f00;
}
.comment-empty {
    text-align: center;
    padding: 30px 0;
    color: #666;
}
.comment-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    color: #444;
}

/* ============================================ */
/* SIDEBAR */
/* ============================================ */
.sidebar-col {
    background: #0a0a0a;
}
.sidebar-inner {
    padding: 15px;
}

/* Sidebar Card */
.sidebar-card {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.sidebar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.sidebar-card-title i {
    color: #f00;
    margin-right: 6px;
}
.sidebar-card-badge {
    background: #17a2b8;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ============================================ */
/* SEASON TABS */
/* ============================================ */
.season-tabs {
    display: flex;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}
.season-tab {
    background: rgba(255,255,255,0.08);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    outline: none;
    line-height: 1.4;
}
.season-tab:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}
.season-tab.active {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255,0,0,0.3);
}

/* Episode Grid */
.episode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 10px;
}
.episode-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #ccc;
    border: 2px solid transparent;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
    line-height: 1;
}
.episode-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
    transform: scale(1.05);
}
.episode-btn.active {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255,0,0,0.3);
    transform: scale(1.05);
}

/* ============================================ */
/* RELATED VIDEOS */
/* ============================================ */
.related-list {
    display: flex;
    flex-direction: column;
}
.related-item {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.related-item:last-child {
    border-bottom: none;
}
.related-item:hover {
    background: rgba(255,255,255,0.03);
}
.related-thumb-wrap {
    position: relative;
    width: 150px;
    min-width: 150px;
    height: 85px;
    border-radius: 6px;
    overflow: hidden;
    background: #0a0a0a;
}
.related-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-thumb-dur {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 600;
}
.related-thumb-play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
    font-size: 1.2rem;
}
.related-item:hover .related-thumb-play {
    opacity: 1;
}
.related-info {
    flex: 1;
    min-width: 0;
}
.related-title {
    font-size: 0.82rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.related-meta {
    font-size: 0.7rem;
    color: #888;
    display: flex;
    gap: 10px;
}
.related-meta i {
    margin-right: 3px;
}

/* ============================================ */
/* AD SPOTS */
/* ============================================ */
.ad-spot {
    margin: 20px 0;
    text-align: center;
    overflow: hidden;
}
.ad-spot-sidebar {
    margin-bottom: 20px;
    text-align: center;
    overflow: hidden;
}
.ad-sticky {
    position: sticky;
    top: 80px;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 991px) {
    .video-title { font-size: 1.2rem; }
    .sidebar-col { border-top: 1px solid rgba(255,255,255,0.05); }
    .related-thumb-wrap { width: 130px; min-width: 130px; height: 75px; }
}
@media (max-width: 767px) {
    .video-title { font-size: 1.1rem; }
    .video-actions-bar { flex-direction: column; align-items: flex-start; }
    .comment-form { flex-direction: column; }
    .comment-input-name { width: 100%; }
    .related-thumb-wrap { width: 120px; min-width: 120px; height: 68px; }
    .btn-like, .btn-share, .btn-dl { padding: 6px 14px; font-size: 0.8rem; }
    .episode-btn { width: 36px; height: 36px; font-size: 0.75rem; }
    .season-tab { padding: 5px 12px; font-size: 0.75rem; }
}
@media (max-width: 576px) {
    .video-title { font-size: 1rem; }
    .video-desc { font-size: 0.85rem; padding: 12px; }
    .comment-section { padding: 15px; }
    .related-thumb-wrap { width: 100px; min-width: 100px; height: 56px; }
    .related-title { font-size: 0.75rem; }
    .episode-btn { width: 34px; height: 34px; font-size: 0.72rem; }
    .season-tab { padding: 5px 10px; font-size: 0.72rem; }
    .sidebar-inner { padding: 10px; }
    .season-tabs { gap: 4px; padding: 8px; }
    .episode-grid { gap: 6px; padding: 8px; }
}