/* ==========================================================================
   Tuktuk888 Theme - Main Stylesheet (HTML)
   Color Scheme: Dark Navy (#0a0a1a) + Neon Pink (#ff007f) + Electric Cyan (#00f0ff) + Gold (#ffd700)
   Layout: YouTube-style (Top-to-Bottom, Left-to-Right)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a1a;
    color: #f1f1f1;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: #00f0ff; text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff007f; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.3; margin-top: 0; color: #fff; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
[hidden] { display: none; }

/* --------------------------------------------------------------------------
   2. UTILITIES
   -------------------------------------------------------------------------- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 20px; width: 100%; }
.desktop-only { display: none; }
.mobile-only { display: block; }

@media (min-width: 1024px) {
    .desktop-only { display: flex; }
    .mobile-only { display: none; }
}

/* --------------------------------------------------------------------------
   3. HEADER (YouTube Style)
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0a0a1a;
    padding: 10px 0;
    border-bottom: 1px solid #1a1a3a;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
/* Left: Logo */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 25%;
}
.menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.menu-toggle:hover { background: #1a1a3a; }
.hamburger-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    position: relative;
}
.hamburger-icon::before, .hamburger-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    left: 0;
}
.hamburger-icon::before { top: -6px; }
.hamburger-icon::after { top: 6px; }
.site-logo img { height: 30px; width: auto; }

/* Center: Search */
.header-center {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
}
.search-form {
    display: flex;
    width: 100%;
    height: 40px;
}
.search-input {
    flex: 1;
    background: #0d0d22;
    border: 1px solid #252550;
    border-right: none;
    border-radius: 20px 0 0 20px;
    padding: 0 16px;
    color: #fff;
    font-size: 1rem;
}
.search-input:focus { border-color: #00f0ff; outline: none; margin-left: -1px; }
.search-btn {
    width: 64px;
    background: #141430;
    border: 1px solid #252550;
    border-radius: 0 20px 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-btn svg { width: 20px; height: 20px; fill: #fff; }
.search-btn:hover { background: #252550; }

/* Right: Actions */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 25%;
}
.header-btn {
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}
.btn-login {
    color: #00f0ff;
    border: 1px solid #00f0ff;
    background: transparent;
}
.btn-login:hover { background: rgba(0, 240, 255, 0.1); border-color: transparent; }
.btn-register {
    background: #ff007f;
    color: #fff;
}
.btn-register:hover { background: #ff1a8c; }

/* --------------------------------------------------------------------------
   4. MAIN LAYOUT (2 Columns)
   -------------------------------------------------------------------------- */
.main-layout {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    max-width: 1440px;
    margin: 0 auto;
}
.primary-content { flex: 1; min-width: 0; }
.secondary-sidebar { width: 400px; flex-shrink: 0; }

@media (max-width: 1023px) {
    .main-layout { flex-direction: column; padding: 16px 0; }
    .secondary-sidebar { width: 100%; }
}

/* --------------------------------------------------------------------------
   5. VIDEO PLAYER AREA (Hero)
   -------------------------------------------------------------------------- */
.video-container {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}
.video-container img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.video-overlay-actions {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
}
.video-btn {
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}
.video-btn:hover { transform: scale(1.05); }
.btn-play { background: #ff007f; color: #fff; }
.btn-vip { background: #00f0ff; color: #000; }

/* --------------------------------------------------------------------------
   6. VIDEO INFO & ENGAGEMENT
   -------------------------------------------------------------------------- */
.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.video-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}
/* Channel Info */
.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.channel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e1e42;
    overflow: hidden;
}
.channel-avatar img { width: 100%; height: 100%; object-fit: cover; }
.channel-text { display: flex; flex-direction: column; }
.channel-name { font-weight: 600; color: #fff; font-size: 1rem; }
.channel-subs { font-size: 0.75rem; color: #aaa; }
.btn-subscribe {
    background: #f1f1f1;
    color: #0a0a1a;
    padding: 8px 16px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 12px;
}
.btn-subscribe:hover { background: #d9d9d9; }

/* Action Buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a1a3a;
    color: #fff;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}
.action-btn:hover { background: #2a2a5a; }
.action-btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-group {
    display: flex;
    background: #1a1a3a;
    border-radius: 18px;
    overflow: hidden;
}
.btn-group .action-btn {
    background: transparent;
    border-radius: 0;
}
.btn-group .action-btn:hover { background: #2a2a5a; }
.btn-group .divider { width: 1px; background: #2a2a5a; margin: 6px 0; }

/* --------------------------------------------------------------------------
   7. DESCRIPTION BOX (SEO Content)
   -------------------------------------------------------------------------- */
.description-box {
    background: #1a1a3a;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #f1f1f1;
    line-height: 1.6;
}
.desc-stats {
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}
.description-box a { color: #00f0ff; text-decoration: none; }
.description-box a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   8. SIDEBAR VIDEOS (Related)
   -------------------------------------------------------------------------- */
.sidebar-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.sidebar-filters::-webkit-scrollbar { display: none; }
.filter-btn {
    background: #1a1a3a;
    color: #f1f1f1;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.2s;
}
.filter-btn.active { background: #f1f1f1; color: #0a0a1a; }
.filter-btn:hover:not(.active) { background: #2a2a5a; }

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.related-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
}
.related-thumb {
    width: 168px;
    height: 94px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #141430;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 500;
}
.related-info { flex: 1; min-width: 0; }
.related-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f1f1;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-channel, .related-views {
    font-size: 0.75rem;
    color: #aaa;
}

@media (max-width: 1023px) {
    .related-list { gap: 16px; }
    .related-thumb { width: 160px; height: 90px; }
}
@media (max-width: 480px) {
    .related-list { flex-direction: column; }
    .related-item { flex-direction: row; }
}

/* --------------------------------------------------------------------------
   9. FAQ ACCORDION (Schema Blocks)
   -------------------------------------------------------------------------- */
.faq-section {
    margin-top: 24px;
    border-top: 1px solid #1a1a3a;
    padding-top: 24px;
}
.faq-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.faq-item {
    background: #0f0f28;
    border: 1px solid #1e1e42;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-q {
    padding: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f1f1;
    cursor: pointer;
    list-style: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
    content: '\25BC';
    font-size: 0.8rem;
    color: #00f0ff;
    transition: transform 0.2s;
}
details[open] .faq-q::after { transform: rotate(180deg); }
.faq-a {
    padding: 0 16px 16px;
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. MOBILE FIXED FOOTER (App-style)
   -------------------------------------------------------------------------- */
.fixed-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0a0a1a;
    border-top: 1px solid #1a1a3a;
    z-index: 9999;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom, 8px);
}
@media (max-width: 768px) {
    .fixed-footer { display: flex; justify-content: space-around; }
    body { padding-bottom: 70px; }
}
.fixed-footer a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #f1f1f1;
    font-size: 0.65rem;
    text-decoration: none;
}
.fixed-footer a.active { color: #ff007f; }
.fixed-footer-icon { width: 24px; height: 24px; }
.fixed-footer-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* --------------------------------------------------------------------------
   11. MOBILE SIDEBAR (Drawer)
   -------------------------------------------------------------------------- */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    z-index: 10000;
}
body.sidebar-open .sidebar-overlay { opacity: 1; visibility: visible; }
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 240px;
    background: #0a0a1a;
    transform: translateX(-100%);
    transition: transform 0.2s;
    z-index: 10001;
    overflow-y: auto;
}
body.sidebar-open .mobile-sidebar { transform: translateX(0); }
.sidebar-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #1a1a3a;
}
.sidebar-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.sidebar-close:hover { background: #1a1a3a; }
.sidebar-close svg { width: 24px; height: 24px; fill: #fff; }
.sidebar-menu { padding: 12px 0; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 24px;
    color: #f1f1f1;
    font-size: 0.95rem;
}
.sidebar-link:hover { background: #1a1a3a; }
.sidebar-link svg { width: 24px; height: 24px; fill: currentColor; }
.sidebar-divider { height: 1px; background: #1a1a3a; margin: 12px 0; }

/* --------------------------------------------------------------------------
   12. PAGE & POST CONTENT
   -------------------------------------------------------------------------- */
.page-content,
.post-content { padding: 30px 0; }
.page-content h1,
.post-content h1 { font-size: 1.4rem; color: #00f0ff; margin-bottom: 15px; }
.page-content .entry-content,
.post-content .entry-content { font-size: 0.88rem; color: #ddd; line-height: 1.8; }
.page-content .entry-content p,
.post-content .entry-content p { margin-bottom: 15px; }

/* --------------------------------------------------------------------------
   13. 404 PAGE
   -------------------------------------------------------------------------- */
.error-404 { text-align: center; padding: 60px 15px; }
.error-404 h1 { font-size: 4rem; color: #ff007f; margin-bottom: 10px; }
.error-404 p { font-size: 1.1rem; color: #888; margin-bottom: 20px; }
.error-404 a {
    display: inline-block;
    padding: 12px 30px;
    background: #ff007f;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
}
