/**
 * Darkflix Cinematic Videos CSS
 * RESCUE PATCH - BULLTEPROOF PLAYER & WATCH PAGE BASE
 */

body.single-video {
    background-color: #000000 !important;
    color: #ffffff !important;
    margin: 0;
    padding: 0;
    font-size: 12px;
}

/* --- Navigation Header --- */
.df-video-header {
    height: 70px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    border-bottom: 1px solid #1a1a1a;
}

.df-video-header__logo img {
    height: 32px;
    width: auto;
}

.df-video-header__nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.df-video-header__link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

/* --- Dropdown Style --- */
.df-video-header__dropdown {
    position: relative;
    display: inline-block;
}

.df-video-header__dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.95);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    z-index: 1;
    border: 1px solid #333;
    border-radius: 4px;
    top: 100%;
    left: 0;
    padding: 10px 0;
}

.df-video-header__dropdown:hover .df-video-header__dropdown-content {
    display: block;
}

.df-video-header__dropdown-content a {
    color: #ccc;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.df-video-header__dropdown-content a:hover {
    background-color: #e50914;
    color: #fff;
}

/* --- Global Container --- */
.df-watch-wrapper {
    padding-top: 90px;
    background-color: #000;
    min-height: 100vh;
}

.df-watch-container {
    max-width: 1300px;
    margin: 0 auto !important;
    padding: 0 20px;
}

/* --- Video Description Toggle --- */
.df-watch-desc {
    margin-top: 20px;
}

.df-watch-desc__content {
    color: #bbb;
    line-height: 1.6;
    font-size: 0.95rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

.df-watch-desc.is-expanded .df-watch-desc__content {
    -webkit-line-clamp: unset;
    display: block;
}

.df-desc-toggle-btn {
    display: none;
    /* Hidden by default, JS shows it if needed */
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 5px 0;
    margin-top: 5px;
    text-transform: lowercase;
}

.df-desc-toggle-btn:hover {
    text-decoration: underline;
    color: #e50914;
}

/* --- Grid System (Cinematic) --- */
.df-watch-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Note: Theater Mode Logic Removed as requested */

/* --- Share Modal Styling --- */
.df-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.df-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.df-modal-content {
    background: #111;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #222;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.df-modal-overlay.active .df-modal-content {
    transform: translateY(0);
}

.df-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.df-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.df-modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: #555;
}

.df-modal-close:hover {
    color: #fff;
}

.df-share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.df-share-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ccc;
    transition: all 0.2s;
}

.df-share-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.df-share-icon--wa {
    background: #25D366;
}

.df-share-icon--fb {
    background: #1877F2;
}

.df-share-icon--x {
    background: #000;
    border: 1px solid #333;
}

.df-share-link:hover {
    color: #fff;
    transform: translateY(-5px);
}

.df-share-link:hover .df-share-icon {
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

/* --- Player Styles --- */
.df-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #080808;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.df-player-wrapper iframe,
.df-player-wrapper video {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* --- Info & Metadata --- */
.df-watch-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.df-watch-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 20px;
}

.df-watch-stats {
    font-size: 0.9rem;
    color: #888;
}

.df-watch-actions {
    display: flex;
    gap: 20px;
}

.df-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #bbb;
    transition: color 0.2s;
}

.df-action-btn:hover,
.df-action-btn.active {
    color: #e50914;
}

/* --- Comment Form Modernization --- */
.df-comments-section {
    margin-top: 60px;
}

#respond {
    background: #0d0d0d;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #1a1a1a;
    margin-bottom: 50px;
}

#reply-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    display: block;
}

#commentform textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
    background: #000;
    color: #fff;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    margin-bottom: 15px;
    transition: border-color 0.2s;
    font-family: inherit;
}

#commentform textarea {
    min-height: 120px;
}

#commentform textarea:focus,
#commentform input:focus {
    border-color: #e50914;
    outline: none;
}

#commentform .submit,
.df-submit-btn {
    background: #e50914;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

#commentform .submit:hover,
.df-submit-btn:hover {
    background: #ff0f1a;
}

/* --- YouTube-Style Comment Style --- */
.comments-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.df-yt-comment {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    background: #0e0e0e;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #1a1a1a;
}

.yt-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.df-yt-comment__body {
    flex: 1;
}

.df-yt-comment__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.df-yt-author {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.df-yt-date {
    color: #aaa;
    font-size: 12px;
}

.df-yt-comment__text {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.df-yt-comment__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.yt-action-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.yt-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.yt-count {
    font-size: 12px;
    color: #aaa;
}

.yt-reply-link a {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.2s;
}

.yt-reply-link a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Reply Hierarchy (Vertical Line) */
.comment-list .children {
    list-style: none;
    padding-left: 56px;
    margin-top: 10px;
}

.comment-list .comment {
    position: relative;
}

.comment-list .children::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #333;
}

.comment-body {
    display: flex;
    gap: 20px;
}

.comment-author img.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #333;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-meta .fn {
    font-weight: 800;
    color: #fff;
    margin-right: 10px;
}

.comment-meta a {
    color: #555;
    font-size: 0.8rem;
    text-decoration: none;
}

.comment-content {
    color: #bbb;
    line-height: 1.6;
    font-size: 0.95rem;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 15px;
    color: #e50914;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
}

/* --- Sidebar --- */
.df-sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.df-sidebar-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- Video Card (Compact) --- */
.df-video-card--compact {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
}

.df-video-card__media {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.df-video-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.df-video-card__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: pointer;
}

.df-video-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f1f1;
    line-height: 1.25rem;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.df-video-card__meta {
    font-size: 0.8rem;
    color: #aaaaaa;
    line-height: 1.2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.df-video-card__meta span {
    color: #aaaaaa;
}

/* Responsive */
@media (max-width: 1000px) {
    .df-watch-grid {
        grid-template-columns: 1fr;
    }

    .df-watch-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .df-watch-title {
        font-size: 1.4rem;
    }

    .df-video-card--compact {
        grid-template-columns: 130px 1fr;
    }
}

/* ==========================================================================
   MODERN VIDEO HOME STYLES (STRICTLY SCOPED)
   ========================================================================== */

.df-video-home-only {
    padding-top: calc(70px + 20px);
    /* header + gap */
    background: #000;
}

.df-video-home-only .df-home-container {
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 0 4%;
}

/* Modern Hero Section */
.df-video-hero-main {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    margin-bottom: 60px;
    overflow: hidden;
}

.df-video-home-only .df-video-hero__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.df-video-home-only .df-video-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.df-video-home-only .df-video-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0.4) 40%, transparent 70%),
                linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 20%);
}

.df-video-home-only .df-video-hero__container {
    position: relative;
    z-index: 5;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.df-video-home-only .df-video-hero__content {
    max-width: 550px; /* Mais compacto como no Prime */
}

.df-video-home-only .df-video-hero__tag {
    background: #e50914;
    color: #fff;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
}

.df-video-home-only .df-video-hero__title {
    font-size: 2.8rem; /* Título menor e mais elegante */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.df-video-home-only .df-video-hero__excerpt {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 35px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.df-video-home-only .df-video-hero__actions {
    display: flex;
    gap: 15px;
}

.df-video-home-only .df-video-hero__btn {
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background 0.2s;
}

.df-video-home-only .df-video-hero__btn--primary {
    width: 6rem;
    height: 6rem;
    background: linear-gradient(45deg, black, transparent);
    color: #fff;
    border: solid 1px #fff;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.df-video-hero__btn--primary i {
    font-size: 3rem;
}

.df-video-home-only .df-video-hero__btn--secondary {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.df-video-home-only .df-video-hero__btn:hover {
    transform: scale(1.05);
}

/* Home Section Layout */
.df-video-home-only .df-home-section {
    margin-bottom: 80px;
}

.df-video-home-only .df-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.df-video-home-only .df-section-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
}

.df-video-home-only .df-section-accent {
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(to right, #e50914, transparent);
    flex-grow: 1;
}

/* 4-Column Responsive Grid */
.df-video-home-only .df-home-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Card Hover Polish */
.df-video-home-only .df-video-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.df-video-home-only .df-video-card:hover {
    transform: scale(1.06);
    z-index: 10;
}

.df-video-home-only .df-video-card:hover .df-video-card__media {
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

/* Tablet / Mobile Adjustments */
@media (max-width: 1200px) {
    .df-video-home-only .df-home-video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .df-video-home-only .df-home-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .df-video-home-only .df-video-hero__title {
        font-size: 2.5rem;
    }

    .df-video-home-only .df-video-hero-main {
        height: auto;
        padding: 60px 0;
    }
}

/* --- My List Page Specifics --- */
.df-my-list-page {
    padding-bottom: 100px;
}

.df-warning-box {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.df-my-list-render {
    min-height: 400px;
}

@media (max-width: 768px) {
    .df-warning-box {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Cinematic Horizontal Slider --- */
.df-slider-container {
    position: relative;
    margin: 0 -10px;
    padding: 0 10px;
}

.df-slider-wrapper {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none !important;
    grid-template-columns: none !important;
    /* Disable grid on slider */
}

.df-slider-wrapper::-webkit-scrollbar {
    display: none !important;
}

.df-slider-wrapper .df-video-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 250px;
    scroll-snap-align: start;
}

.df-slider-nav {
    position: absolute;
    top: calc(50% - 20px);
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    width: 45px;
    height: 100px;
    font-size: 1.5rem;
    cursor: pointer;

    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.df-video-card__title {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
}

.df-slider-nav:hover {
    background: #e50914;
}

.df-slider-prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.df-slider-next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

@media (max-width: 1024px) {
    .df-slider-wrapper .df-video-card {
        flex: 0 0 calc(33.33% - 15px);
    }
}

@media (max-width: 768px) {
    .df-slider-wrapper .df-video-card {
        flex: 0 0 calc(50% - 15px);
    }

    .df-slider-nav {
        display: none;
    }

    /* Use touch scroll on mobile */
}

@media (max-width: 480px) {
    .df-slider-wrapper .df-video-card {
        flex: 0 0 85%;
    }
}

@media (max-width: 600px) {
    .df-video-home-only .df-home-video-grid:not(.df-slider-wrapper) {
        grid-template-columns: 1fr;
    }
}