/* public/watch-style.css */

.watch-page-container {
    padding-top: 20px;
}

.player-section {
    width: 100%;
    background-color: #000;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 56.25%;
}

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

.info-wrapper {
    padding-top: 2rem;
}

/* Tata Letak Dua Kolom */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.detail-main h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 1rem 0;
    color: var(--text-secondary);
}
.meta-info .year { font-weight: 500; }
.meta-info .rating { font-weight: bold; color: #f5c518; }

/* DNS Instructions Dropdown */
.dns-instructions-wrapper {
    margin: 1.5rem 0;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: visible;
    border: 1px solid #333;
}

.dns-toggle-btn {
    width: 100%;
    padding: 15px 20px;
    background-color: #2a2a2a;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.dns-toggle-btn:hover {
    background-color: #333;
}

.dns-toggle-btn.active {
    background-color: var(--primary-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dns-chevron {
    transition: transform 0.3s ease;
    margin-left: auto;
}

.dns-toggle-btn.active .dns-chevron {
    transform: rotate(180deg);
}

.dns-instructions-content {
    display: none;
    padding: 0;
    background-color: #1a1a1a;
}

.dns-instructions-content.active {
    display: block;
    padding: 20px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dns-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.dns-steps li {
    counter-increment: step-counter;
    position: relative;
    padding: 15px 15px 15px 50px;
    margin-bottom: 12px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.dns-steps li:hover {
    background-color: #333;
    transform: translateX(5px);
}

.dns-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 12px;
    top: 15px;
    background-color: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.dns-steps li span {
    color: var(--text-secondary);
    line-height: 1.6;
}

.dns-steps li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.dns-steps li a:hover {
    color: #fff;
    text-decoration: underline;
}

.dns-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    background-color: #1a1a1a;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
}

.dns-input-wrapper code {
    flex: 1;
    background-color: #000;
    color: #4caf50;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
}

.copy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.copy-btn:active {
    transform: translateY(0);
}

/* DNS Guide Box (New Style) */
.dns-guide-box {
    margin: 1.5rem 0;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.guide-title-toggle {
    width: 100%;
    padding: 15px 20px;
    background-color: #2a2a2a;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.guide-title-toggle:hover {
    background-color: #333;
}

.guide-title-toggle.active {
    background-color: var(--primary-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.guide-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-title i {
    color: #f5c518;
}

.dropdown-icon {
    transition: transform 0.3s ease;
    color: #fff;
}

.guide-title-toggle.active .dropdown-icon {
    transform: rotate(180deg);
}

.guide-steps-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #1a1a1a;
}

.guide-steps-content.active {
    max-height: 1500px;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.guide-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.guide-steps li {
    counter-increment: step-counter;
    position: relative;
    padding: 15px 15px 15px 50px;
    margin-bottom: 12px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.guide-steps li:hover {
    background-color: #333;
    transform: translateX(5px);
}

.guide-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 12px;
    top: 15px;
    background-color: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.guide-steps li span {
    color: var(--text-secondary);
    line-height: 1.6;
}

.guide-steps li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.guide-steps li a:hover {
    color: #fff;
    text-decoration: underline;
}

.detail-main h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.synopsis {
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Sidebar Info */
.sidebar-poster {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}
.sidebar-box {
    margin-bottom: 20px;
}
.sidebar-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    background-color: #333;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: background-color 0.2s;
}
.tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Comments Section */
.comments-section { margin-top: 3rem; }
#comment-form input, #comment-form textarea {
    width: 100%; padding: 12px; background-color: #222; border: 1px solid #444;
    border-radius: 4px; color: white; box-sizing: border-box; margin-bottom: 15px;
}
.btn-submit {
    background-color: var(--primary-color); color: white; padding: 10px 20px;
    border: none; border-radius: 5px; cursor: pointer; font-weight: bold;
}
.comment-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.comment-item { background-color: #1f1f1f; padding: 15px; border-radius: 6px; border-left: 3px solid var(--primary-color); }
.comment-header { display: flex; justify-content: space-between; margin-bottom: 8px; color: #888; font-size: 0.9rem; }
.comment-author { font-weight: bold; color: var(--text-secondary); }
.comment-content { line-height: 1.6; }

/* Responsive */
@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .detail-sidebar {
        grid-row-start: 1; /* Pindahkan sidebar ke atas info utama di mobile */
    }
}
@media (max-width: 768px) {
    .detail-main h1 { font-size: 1.8rem; }
    .detail-main h3 { font-size: 1.2rem; }
    .synopsis { font-size: 0.9rem; }

    /* DNS Instructions Mobile Responsive */
    .dns-instructions-wrapper {
        margin: 1rem 0;
    }

    .dns-toggle-btn {
        font-size: 0.85rem;
        padding: 12px 15px;
        gap: 8px;
    }

    .dns-toggle-btn i:first-child {
        font-size: 1rem;
    }

    .dns-instructions-content.active {
        padding: 15px;
    }

    .dns-steps li {
        padding: 12px 12px 12px 42px;
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .dns-steps li::before {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        left: 10px;
        top: 12px;
    }

    .dns-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .dns-input-wrapper code {
        font-size: 0.85rem;
        text-align: center;
        padding: 8px 12px;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
    }

    /* DNS Guide Box Mobile Responsive */
    .dns-guide-box {
        margin: 1rem 0;
    }

    .guide-title-toggle {
        font-size: 0.85rem;
        padding: 12px 15px;
    }

    .guide-title {
        font-size: 0.85rem;
        gap: 8px;
    }

    .guide-title i {
        font-size: 1rem;
    }

    .guide-steps-content.active {
        padding: 15px;
    }

    .guide-steps li {
        padding: 12px 12px 12px 42px;
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .guide-steps li::before {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        left: 10px;
        top: 12px;
    }
}