/*
Theme Name: DramaToon
Theme URI: https://example.com/
Author: DramaToon
Description: Modern responsive vertical-drama streaming WordPress theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dramatoon
*/

:root {
    --dt-bg: #080811;
    --dt-bg-2: #0d0d18;
    --dt-card: #11121f;
    --dt-card-2: #17172a;
    --dt-text: #f6f4ff;
    --dt-muted: #aaa8bc;
    --dt-border: rgba(255,255,255,.08);
    --dt-purple: #a743ff;
    --dt-violet: #7f35ff;
    --dt-blue: #3c7dff;
    --dt-gradient: linear-gradient(110deg, #ff3ec9 0%, #9f3cff 42%, #3b7dff 100%);
    --dt-radius-xl: 28px;
    --dt-radius-lg: 20px;
    --dt-radius-md: 14px;
    --dt-shadow: 0 24px 70px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(133,49,255,.12), transparent 30%),
        radial-gradient(circle at 100% 15%, rgba(64,106,255,.10), transparent 30%),
        var(--dt-bg);
    color: var(--dt-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.dt-menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.container { width: min(1440px, calc(100% - 40px)); margin: 0 auto; }

.dt-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(8,8,17,.84);
    backdrop-filter: blur(20px);
}
.dt-header-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto 1fr minmax(300px, 520px) auto;
    gap: 18px;
    align-items: center;
}
.dt-menu-btn,
.dt-icon-btn {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--dt-border);
    background: rgba(255,255,255,.04);
    border-radius: 14px;
    cursor: pointer;
    transition: .2s ease;
}
.dt-menu-btn:hover, .dt-icon-btn:hover { transform: translateY(-1px); border-color: rgba(167,67,255,.5); }
.dt-logo {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.04em;
    background: var(--dt-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.dt-search {
    position: relative;
}
.dt-search input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 16px;
    color: var(--dt-text);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--dt-border);
    border-radius: 14px;
    outline: none;
}
.dt-search input:focus { border-color: rgba(167,67,255,.6); box-shadow: 0 0 0 4px rgba(167,67,255,.10); }
.dt-search button {
    position: absolute; right: 6px; top: 6px;
    width: 36px; height: 36px; border: 0; border-radius: 10px;
    background: transparent; cursor: pointer;
}

.dt-main { padding: 30px 0 90px; }
.dt-section { margin-top: 38px; }
.dt-section-head {
    display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 16px;
}
.dt-section-title {
    font-size: clamp(22px, 2.2vw, 30px);
    margin: 0;
    font-weight: 850;
    letter-spacing: -.03em;
}
.dt-section-link { color: #b993ff; font-weight: 700; }

.dt-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--dt-border);
    border-radius: var(--dt-radius-xl);
    min-height: 470px;
    background: var(--dt-card);
    box-shadow: var(--dt-shadow);
}
.dt-hero-slide { position: relative; min-height: 470px; }
.dt-hero-media, .dt-hero-overlay { position: absolute; inset: 0; }
.dt-hero-media img {
    width: 100%; height: 100%; object-fit: cover;
}
.dt-hero-overlay {
    background:
        linear-gradient(90deg, rgba(6,6,12,.95) 0%, rgba(6,6,12,.70) 38%, rgba(6,6,12,.10) 72%),
        linear-gradient(0deg, rgba(6,6,12,.78) 0%, transparent 45%);
}
.dt-hero-content {
    position: relative; z-index: 2;
    max-width: 610px;
    padding: 64px 64px 94px;
}
.dt-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    color: #d8caff;
    padding: 8px 12px; border-radius: 999px;
    background: rgba(167,67,255,.13); border: 1px solid rgba(167,67,255,.25);
    font-size: 13px; font-weight: 800;
}
.dt-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: .98;
    letter-spacing: -.055em;
}
.dt-hero p {
    color: #d3d0dd;
    font-size: 17px;
    line-height: 1.7;
}
.dt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.dt-tag {
    padding: 7px 11px; border-radius: 999px; border: 1px solid var(--dt-border);
    background: rgba(255,255,255,.04); color: #d4cfea; font-size: 12px; font-weight: 750;
}
.dt-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--dt-border);
    background: rgba(255,255,255,.05); font-weight: 800; cursor: pointer;
}
.dt-btn-primary {
    background: var(--dt-gradient);
    border: 0; color: #090813;
    box-shadow: 0 12px 34px rgba(137,58,255,.26);
}
.dt-btn-primary:hover { filter: brightness(1.05); }
.dt-btn-ghost:hover { border-color: rgba(255,255,255,.22); }

.dt-carousel { position: relative; }
.dt-carousel-track { display: flex; transition: transform .45s ease; }
.dt-carousel-slide { min-width: 100%; }
.dt-dots {
    position: absolute; left: 64px; bottom: 22px; z-index: 4;
    display: flex; gap: 7px;
}
.dt-dot {
    width: 8px; height: 8px; border-radius: 999px; border: 0;
    background: rgba(255,255,255,.28); cursor: pointer;
}
.dt-dot.is-active { width: 26px; background: linear-gradient(90deg,#ff3ec9,#6c57ff); }

.dt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 16px;
}
.dt-card {
    min-width: 0;
    background: var(--dt-card);
    border: 1px solid var(--dt-border);
    border-radius: var(--dt-radius-md);
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.dt-card:hover { transform: translateY(-5px); border-color: rgba(167,67,255,.34); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.dt-card-media { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #12121c; }
.dt-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dt-card:hover .dt-card-media img { transform: scale(1.035); }
.dt-ep-badge {
    position: absolute; left: 10px; bottom: 10px;
    padding: 6px 9px; border-radius: 9px; font-size: 11px; font-weight: 850;
    color: #fff; background: rgba(16,16,24,.72); border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(8px);
}
.dt-card-body { padding: 12px 12px 14px; }
.dt-card-title {
    margin: 0; font-size: 14px; line-height: 1.35; font-weight: 800;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.dt-card-meta { margin-top: 7px; color: var(--dt-muted); font-size: 12px; }

.dt-empty {
    padding: 44px 24px; border: 1px dashed rgba(255,255,255,.12); border-radius: 18px;
    color: var(--dt-muted); text-align: center;
}

.dt-drawer-backdrop {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(0,0,0,.68); opacity: 0; visibility: hidden; transition: .25s;
}
.dt-drawer {
    position: fixed; inset: 0 auto 0 0; z-index: 81;
    width: min(520px, 88vw);
    transform: translateX(-100%); transition: .28s ease;
    background: linear-gradient(180deg, #10101c 0%, #090913 100%);
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 40px 0 100px rgba(0,0,0,.4);
    padding: 24px;
    overflow-y: auto;
}
body.dt-menu-open .dt-drawer { transform: translateX(0); }
body.dt-menu-open .dt-drawer-backdrop { opacity: 1; visibility: visible; }
.dt-drawer-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.dt-drawer-title { font-size: 18px; font-weight: 850; }
.dt-nav-list { display:grid; gap: 10px; }
.dt-nav-link {
    display:flex; align-items:center; gap:12px; padding:16px;
    border:1px solid var(--dt-border); border-radius:15px; color:#ddd9ea; font-weight:750;
    background: rgba(255,255,255,.02);
}
.dt-nav-link:hover, .dt-nav-link.is-active { background: rgba(167,67,255,.10); border-color: rgba(167,67,255,.26); color:#fff; }

.dt-single-hero {
    display:grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 36px; align-items:start;
}
.dt-poster {
    border-radius: 22px; overflow:hidden; border:1px solid var(--dt-border); background:#10101a; box-shadow: var(--dt-shadow);
}
.dt-poster img { width:100%; aspect-ratio:2/3; object-fit:cover; }
.dt-meta-stack { display:grid; gap: 12px; }
.dt-single-title { margin:0; font-size: clamp(32px, 4.5vw, 58px); line-height:1.02; letter-spacing:-.05em; }
.dt-publisher { color:#bd7cff; font-weight:800; }
.dt-description { color:#d0ccd9; font-size:17px; line-height:1.8; }
.dt-long-text { position:relative; max-height: 360px; overflow:hidden; }
.dt-long-text.is-expanded { max-height:none; }
.dt-readmore { margin-top:10px; background:none; border:0; color:#b786ff; font-weight:800; padding:0; cursor:pointer; }

.dt-episodes {
    display:grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 10px;
}
.dt-episode-btn {
    min-height: 48px; display:flex; align-items:center; justify-content:center;
    border:1px solid var(--dt-border); border-radius:12px; background:#171827; color:#ddd8e8; font-weight:800;
}
.dt-episode-btn:hover, .dt-episode-btn.is-active { background: var(--dt-gradient); color:#0a0911; border-color:transparent; }

.dt-comments { margin-top:44px; }
.dt-comment-box {
    padding: 18px; border:1px solid var(--dt-border); border-radius:18px; background:var(--dt-card);
}
.dt-comment-box textarea {
    width:100%; min-height:120px; resize:vertical; padding:14px; color:var(--dt-text);
    background:#0b0b13; border:1px solid var(--dt-border); border-radius:13px; outline:none;
}
.dt-comment-list { display:grid; gap:12px; margin-top:16px; }
.dt-comment {
    padding:16px; border:1px solid var(--dt-border); border-radius:14px; background:#0d0d17;
}
.dt-comment small { color:var(--dt-muted); }

.dt-player-page { background:#000; min-height:100vh; color:#fff; }
.dt-player-shell { width:min(1180px,100%); margin:0 auto; padding: 14px 18px 60px; }
.dt-player-top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:14px; }
.dt-player-title { font-weight:850; }
.dt-player-stage {
    position:relative; width:min(100%, 560px); margin:0 auto;
    background:#07070b; border-radius:22px; overflow:hidden; border:1px solid rgba(255,255,255,.07);
    box-shadow:0 28px 90px rgba(0,0,0,.5);
}
.dt-video {
    display:block; width:100%; aspect-ratio:9/16; background:#050505; object-fit:cover;
}
.dt-poster-play {
    position:absolute; inset:0; display:grid; place-items:center; pointer-events:none;
}
.dt-poster-play span {
    width:82px; height:82px; border-radius:50%; display:grid; place-items:center;
    background:rgba(25,25,32,.74); border:1px solid rgba(255,255,255,.15);
    font-size:36px; padding-left:5px;
}
.dt-player-controls {
    position:absolute; top:20px; right:14px; z-index:3; display:grid; gap:10px;
}
.dt-float-control {
    width:52px; height:52px; border-radius:50%; border:1px solid rgba(255,255,255,.16);
    background:rgba(30,30,36,.68); backdrop-filter:blur(10px); color:#fff;
    display:grid; place-items:center; cursor:pointer;
}
.dt-float-control:hover { background:rgba(64,54,92,.9); }
.dt-float-control-label { text-align:center; font-size:11px; color:#e8e4ee; font-weight:800; }
.dt-player-bottom { padding:14px 4px; }
.dt-player-actions { display:flex; gap:8px; flex-wrap:wrap; }
.dt-ep-pill { display:inline-flex; padding:8px 10px; background:#2a64f5; border-radius:8px; font-weight:900; }
.dt-episode-drawer {
    position:fixed; top:0; right:0; bottom:0; width:min(380px, 92vw); z-index:100;
    transform:translateX(100%); transition:.25s;
    background:#0c0c15; border-left:1px solid rgba(255,255,255,.08); padding:18px; overflow:auto;
}
.dt-episode-drawer.is-open { transform:translateX(0); }
.dt-episode-list { display:grid; gap:8px; margin-top:14px; }
.dt-episode-row {
    display:flex; align-items:center; justify-content:space-between; gap:8px;
    padding:12px 14px; border:1px solid var(--dt-border); border-radius:12px; background:#13131f;
}
.dt-episode-row.is-active { background:rgba(167,67,255,.12); border-color:rgba(167,67,255,.36); }

.dt-search-page h1 { margin-top:0; }
.dt-search-form { display:flex; gap:10px; margin-bottom:24px; }
.dt-search-form input {
    flex:1; min-width:0; height:52px; padding:0 16px; background:#11111a; color:#fff; border:1px solid var(--dt-border); border-radius:14px;
}
.dt-search-form button { min-width:130px; }

.dt-footer {
    border-top:1px solid rgba(255,255,255,.06);
    padding: 40px 0; color: var(--dt-muted);
}
.dt-footer-inner { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.dt-footer-brand { font-weight:900; color:#fff; }

@media (max-width: 1100px) {
    .dt-header-inner { grid-template-columns:auto 1fr auto; }
    .dt-header .dt-search { grid-column:1 / -1; grid-row:2; padding-bottom:14px; }
    .dt-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .dt-episodes { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .container { width:min(100% - 24px, 1440px); }
    .dt-main { padding-top:18px; }
    .dt-header-inner { min-height:66px; gap:10px; }
    .dt-logo { font-size:27px; }
    .dt-icon-btn, .dt-menu-btn { width:44px; height:44px; }
    .dt-hero { min-height: 520px; }
    .dt-hero-slide { min-height:520px; }
    .dt-hero-content { padding: 28px 22px 72px; max-width: 92%; }
    .dt-hero h1 { font-size:39px; }
    .dt-hero-overlay { background:
        linear-gradient(0deg, rgba(6,6,12,.96) 0%, rgba(6,6,12,.25) 72%),
        linear-gradient(90deg, rgba(6,6,12,.35) 0%, transparent 100%); }
    .dt-dots { left:22px; }
    .dt-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; }
    .dt-card-title { font-size:13px; }
    .dt-single-hero { grid-template-columns: 1fr; gap:22px; }
    .dt-poster { max-width: 420px; margin:0 auto; }
    .dt-description { font-size:15px; }
    .dt-episodes { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .dt-player-shell { padding: 0 0 40px; }
    .dt-player-stage { width:100%; border-radius:0; border-left:0; border-right:0; }
    .dt-player-bottom { padding:14px; }
}
@media (min-width: 1200px) {
    .dt-grid { grid-template-columns: repeat(7, minmax(0,1fr)); }
}


/* DramaToon requested additions */
.dt-top-banner-space {
    height: 20px;
    width: 100%;
    background: transparent;
}
.dt-carousel { min-height: 470px; }
.dt-carousel-viewport { overflow: hidden; min-height: 470px; border-radius: var(--dt-radius-xl); }
.dt-carousel-track {
    display: flex;
    width: 100%;
    will-change: transform;
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.dt-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
}
.dt-carousel-slide .dt-hero-slide { min-height: 470px; }
.dt-hero-image {
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.dt-carousel-arrow {
    position:absolute; top:50%; transform:translateY(-50%);
    z-index:5; width:44px; height:44px; display:grid; place-items:center;
    border:1px solid rgba(255,255,255,.14); border-radius:50%;
    color:#fff; background:rgba(10,10,16,.56); backdrop-filter:blur(12px);
    font-size:34px; line-height:1; cursor:pointer;
}
.dt-carousel-arrow:hover { background:rgba(120,65,255,.7); }
.dt-carousel-prev { left:18px; }
.dt-carousel-next { right:18px; }
.dt-carousel-empty {
    min-height:470px; display:flex; align-items:center; padding:60px;
    background:
       radial-gradient(circle at 75% 35%, rgba(125,58,255,.24), transparent 30%),
       linear-gradient(120deg,#10101b,#0b0b12);
    border-radius:var(--dt-radius-xl);
}
.dt-carousel-empty h1 { font-size:clamp(34px,4vw,58px); margin:18px 0 10px; letter-spacing:-.05em; }
.dt-carousel-empty p { max-width:620px; color:var(--dt-muted); line-height:1.7; }
.dt-auth-wrap { display:flex; justify-content:center; }
.dt-auth-card {
    width:min(520px,100%);
    padding:26px;
    border-radius:24px;
    background:linear-gradient(180deg,#131320,#0d0d16);
    border:1px solid var(--dt-border);
    box-shadow:var(--dt-shadow);
}
.dt-auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:5px; background:#090910; border:1px solid var(--dt-border); border-radius:14px; margin-bottom:20px; }
.dt-auth-tab { border:0; background:transparent; color:var(--dt-muted); border-radius:10px; min-height:44px; cursor:pointer; font-weight:800; }
.dt-auth-tab.is-active { color:#fff; background:linear-gradient(110deg,rgba(255,62,201,.23),rgba(59,125,255,.22)); }
.dt-auth-form { display:none; gap:14px; }
.dt-auth-form.is-visible { display:grid; }
.dt-auth-form label { display:grid; gap:7px; color:#d9d5e5; font-size:14px; font-weight:700; }
.dt-auth-form input:not([type="checkbox"]) {
    width:100%; height:50px; padding:0 14px; color:#fff; background:#090910;
    border:1px solid var(--dt-border); border-radius:12px; outline:none;
}
.dt-auth-form input:not([type="checkbox"]):focus { border-color:rgba(167,67,255,.55); box-shadow:0 0 0 4px rgba(167,67,255,.1); }
.dt-check { display:flex !important; grid-template-columns:auto 1fr; align-items:center; }
.dt-check input { width:16px; height:16px; }
.dt-auth-submit { width:100%; min-height:52px; }
.dt-auth-note { color:var(--dt-muted); font-size:13px; line-height:1.5; margin:0; }
.dt-auth-message {
    max-width:760px; margin:0 auto 18px; padding:14px 16px; border-radius:14px;
    border:1px solid rgba(255,255,255,.08); background:#11111a;
}
.dt-auth-message.error { border-color:rgba(255,100,100,.28); color:#ffc4c4; }
.dt-profile-summary {
    display:flex; align-items:center; gap:16px; padding:18px; margin-bottom:18px;
    border:1px solid var(--dt-border); border-radius:18px; background:#0b0b12;
}
.dt-profile-summary h2 { margin:0 0 3px; }
.dt-profile-summary p { margin:0; color:var(--dt-muted); }
.dt-profile-avatar {
    width:58px; height:58px; border-radius:18px; display:grid; place-items:center;
    background:var(--dt-gradient); color:#fff; font-size:24px; font-weight:900;
}
@media (max-width:760px) {
    .dt-top-banner-space { height:58px; }
    .dt-carousel, .dt-carousel-viewport, .dt-carousel-slide .dt-hero-slide { min-height:500px; }
    .dt-carousel-arrow { width:38px; height:38px; font-size:29px; }
    .dt-carousel-prev { left:10px; }
    .dt-carousel-next { right:10px; }
    .dt-carousel-empty { min-height:500px; padding:28px 22px; }
    .dt-auth-card { padding:20px; border-radius:20px; }
}


.dt-auth-inline-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,100,100,.28);
    background: rgba(255,80,80,.07);
    color: #ffc6c6;
    font-size: 13px;
    line-height: 1.5;
}
.dt-search-empty {
    text-align: center;
    padding: 56px 24px;
    border: 1px solid var(--dt-border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
    max-width: 760px;
    margin: 28px auto 0;
}
.dt-search-empty-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(167,67,255,.12);
    border: 1px solid rgba(167,67,255,.25);
    font-size: 30px;
}
.dt-search-empty h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 4vw, 34px);
    letter-spacing: -.03em;
}
.dt-search-empty p {
    margin: 7px 0;
    color: var(--dt-muted);
    line-height: 1.7;
}
@media (max-width:760px) {
    .dt-top-banner-space { height: 12px; }
}


/* Never reserve space for the WordPress admin bar on the public DramaToon site. */
html { margin-top: 0 !important; }
body.admin-bar { padding-top: 0 !important; }

body.admin-bar #wpadminbar { display:none !important; }
