/* ==========================================================================
   TeraPlayerOnline.com - Unified Global Design System
   Modern Obsidian Dark / Electric Cyan & Azure Aesthetic
   Mobile-First, Ultra-Lightweight, Sub-300ms Performance
   ========================================================================== */

/* Self-hosted DM Sans â€” eliminates render-blocking Google Fonts CDN call */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/assets/fonts/dm-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-main: #07090e;
    --bg-card: #0f172a;
    --bg-card-alt: #162036;
    --bg-glass: rgba(15, 23, 42, 0.75);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(6, 182, 212, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --cyan-primary: #06b6d4;
    --cyan-hover: #0891b2;
    --blue-primary: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --accent-glow: 0 0 25px rgba(6, 182, 212, 0.25);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --font-stack: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.6px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Glows */
.ambient-glow-1 {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(59, 130, 246, 0.06) 40%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 34px;
    height: 34px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.brand-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    margin-left: 2px;
}

.brand-text span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-gradient);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

/* Responsive Mobile Navigation & Overflow Prevention */
@media (max-width: 900px) {
    .header-container {
        padding: 10px 16px;
        gap: 10px;
    }
    .brand-logo {
        font-size: 1.15rem;
    }
    .nav-links {
        gap: 6px;
    }
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    .nav-btn {
        font-size: 0.82rem;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 12px;
        gap: 8px;
        justify-content: space-between;
    }
    .brand-logo {
        font-size: 1.05rem;
        gap: 6px;
        flex-shrink: 0;
    }
    .brand-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }
    .brand-icon svg {
        width: 15px;
        height: 15px;
    }
    .nav-links {
        gap: 4px;
        flex-shrink: 1;
        flex-wrap: nowrap;
    }
    .nav-link {
        font-size: 0.78rem;
        padding: 5px 8px;
    }
    .nav-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
        white-space: nowrap;
    }
    /* Hide anchor links from top bar on mobile (available in footer) */
    .nav-link-anchor {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 8px 10px;
    }
    .brand-logo {
        font-size: 0.95rem;
        gap: 5px;
    }
    .brand-icon {
        width: 26px;
        height: 26px;
        border-radius: 7px;
    }
    .brand-icon svg {
        width: 13px;
        height: 13px;
    }
    .nav-links {
        gap: 3px;
    }
    .nav-link {
        font-size: 0.72rem;
        padding: 4px 6px;
    }
    .nav-btn {
        font-size: 0.70rem;
        padding: 4px 8px;
    }
}

@media (max-width: 360px) {
    .brand-text span {
        display: none;
    }
    .nav-btn {
        display: none;
    }
}

/* Main Content Wrap */
.main-wrapper {
    flex: 1;
    position: relative;
    z-index: 1;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 18px 60px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--cyan-primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.9rem;
    }
}

.hero-title .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 24px;
    font-weight: 400;
}

/* Supported Domains Chip Grid */
.supported-domains-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    margin-bottom: 24px;
}

.domain-chip {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Features Grid */
.features-section {
    margin: 60px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 36px;
}

.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(6, 182, 212, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--cyan-primary);
}

.feature-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Steps / How-To Section */
.steps-section {
    margin: 60px 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    position: relative;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.step-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Deep SEO Content Box */
.content-section {
    margin: 60px 0;
    line-height: 1.7;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    margin-bottom: 24px;
}

.content-card h2 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.content-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--cyan-primary);
}

.content-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.content-card ul {
    list-style: none;
    margin: 12px 0 20px;
}

.content-card ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.content-card ul li::before {
    content: "âœ“";
    position: absolute;
    left: 0;
    color: var(--cyan-primary);
    font-weight: 700;
}

/* FAQ Accordions */
.faq-section {
    margin: 60px 0;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.faq-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    color: var(--cyan-primary);
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 20px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 20px 20px;
}

/* Footer */
.site-footer {
    background: #040508;
    border-top: 1px solid var(--border-subtle);
    padding: 40px 20px 30px;
    margin-top: auto;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--cyan-primary);
}

.footer-disclaimer {
    max-width: 720px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Blog Directory & Article System
   ========================================================================== */
.blog-hero {
    text-align: center;
    padding: 44px 10px 32px;
}

.blog-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 12px;
}

.blog-hero .hero-title .gradient-text {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero .hero-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 28px;
    margin-bottom: 60px;
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

.blog-card {
    background: #111726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7), 0 0 24px rgba(6, 182, 212, 0.16);
}

.blog-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #090d16;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
}

.blog-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-thumb {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 12px;
}

.blog-card-meta .meta-date {
    color: #64748b;
}

.blog-card-meta .meta-time {
    color: #64748b;
}

.blog-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.36;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4px;
}

.blog-read-more {
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.blog-card:hover .blog-read-more {
    color: #06b6d4;
    gap: 9px;
}

/* Article Layout (iTeraPlay style) */
.article-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 0 60px;
}

.article-header {
    margin-bottom: 28px;
    text-align: left;
}

.back-to-articles {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 26px;
    transition: color 0.2s ease;
}

.back-to-articles:hover {
    color: #ffffff;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: left;
}

@media (min-width: 768px) {
    .article-title {
        font-size: 2.85rem;
    }
}

.article-author-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.article-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
    flex-shrink: 0;
}

.article-author-avatar svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

.article-author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.article-author-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.article-author-meta {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
}

.article-featured-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 0 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.7);
    background: #090d16;
}

.article-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Floating Telegram / Support Button (seen in reference screenshot) */
.floating-tg-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0ea5e9;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.floating-tg-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.6);
}

.floating-tg-btn svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    margin-right: 2px;
}

.article-toc {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 28px 0;
}

.article-toc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.article-toc ul {
    list-style: none;
    padding-left: 0;
}

.article-toc li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.article-toc a {
    color: var(--cyan-primary);
    text-decoration: none;
}

.article-toc a:hover {
    text-decoration: underline;
}

.article-content {
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 1.02rem;
}

.article-content h2 {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cyan-primary);
    margin: 26px 0 12px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 14px 0 24px 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content a {
    color: var(--cyan-primary);
    text-decoration: underline;
    font-weight: 600;
}

.article-content a:hover {
    color: #38bdf8;
}

.callout-box {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-left: 4px solid var(--cyan-primary);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin: 28px 0;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.callout-box strong {
    color: var(--cyan-primary);
}

/* Sticky Action Banner inside Blog */
.cta-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(22, 32, 54, 0.95) 100%);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.3);
}

.cta-banner h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.cta-banner p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gradient);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
}



/* --- PLAYER COMPONENT STYLES --- */

/* TeraBox Player Stylesheet - Mobile-First Responsive DM Sans UI */
/* Font is self-hosted via site.css @font-face â€” no render-blocking CDN call */

.tb-player-container {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    letter-spacing: 0.6px;
    color: #f1f5f9;
    width: 100%;
    max-width: 980px;
    margin: 16px auto;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tb-player-container *,
.tb-player-container *::before,
.tb-player-container *::after {
    box-sizing: border-box;
    font-family: inherit;
}

.tb-hidden {
    display: none !important;
}

/* Input Form */
.tb-input-box {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.tb-input-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 10px;
}

.tb-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 640px) {
    .tb-input-wrapper {
        flex-direction: row;
        align-items: center;
    }
}

.tb-input-field-wrapper {
    position: relative !important;
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.tb-player-container .tb-input-icon,
.tb-input-icon {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: #64748b !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.tb-player-container input.tb-url-input,
.tb-player-container .tb-url-input,
.tb-url-input {
    width: 100% !important;
    background: rgba(11, 15, 25, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding-left: 46px !important;
    padding-right: 44px !important;
    padding-top: 13px !important;
    padding-bottom: 13px !important;
    color: #f8fafc !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    min-height: 48px !important;
}

.tb-url-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.tb-player-container .tb-clear-btn,
.tb-clear-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.15s, color 0.15s, transform 0.1s !important;
    padding: 0 !important;
    z-index: 5 !important;
}

.tb-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #f8fafc;
}

.tb-clear-btn:active {
    transform: scale(0.92);
}

.tb-clear-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.tb-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

@media (min-width: 640px) {
    .tb-btn-group {
        width: auto;
    }
}

.tb-paste-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    box-sizing: border-box;
    flex: 1;
}

@media (min-width: 640px) {
    .tb-paste-btn {
        flex: initial;
    }
}

.tb-paste-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.tb-paste-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.tb-load-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    box-sizing: border-box;
    flex: 2;
}

@media (min-width: 640px) {
    .tb-load-btn {
        flex: initial;
    }
}

.tb-load-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.tb-load-btn:active {
    transform: scale(0.98);
}

.tb-btn-play-icon {
    width: 15px;
    height: 15px;
    fill: #ffffff;
}

.tb-paste-notice {
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.85);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-block;
    animation: tb-fade-in 0.2s ease;
}

@keyframes tb-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Error Notice */
.tb-error-notice {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 14px;
}

/* Player Box */
.tb-player-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.tb-video-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    min-width: 0;
}

.tb-video-title {
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
}

.tb-video-meta {
    color: #94a3b8;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Viewport Frame with Intelligent Dynamic Sizing */
.tb-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    max-height: 75vh;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: aspect-ratio 0.3s ease, max-width 0.3s ease, max-height 0.3s ease;
}

@media (min-width: 640px) {
    .tb-viewport {
        min-height: 320px;
    }
}

.tb-video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    background: #000000;
    position: relative;
    z-index: 1;
}

/* Watchdog Banner */
.tb-watchdog-banner {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(245, 158, 11, 0.95);
    color: #0f172a;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 12;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: tb-pulse 1.5s infinite;
    white-space: nowrap;
    max-width: 90%;
    pointer-events: none;
}

/* Center Play Button Overlay */
.tb-center-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    z-index: 15;
    pointer-events: auto;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tb-center-play.tb-fade-out {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.tb-center-play.tb-fade-in {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.tb-play-circle {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, box-shadow 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 639px) {
    .tb-play-circle {
        width: 58px;
        height: 58px;
    }
}

.tb-play-circle:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.tb-play-circle:active {
    transform: scale(0.94);
}

.tb-play-circle svg {
    width: 28px;
    height: 28px;
    fill: #0f172a;
    margin-left: 3px;
}



.tb-spinner, .tb-watchdog-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: tb-spin 0.8s linear infinite;
    display: inline-block;
}

.tb-watchdog-spinner {
    border-color: rgba(15, 23, 42, 0.3);
    border-top-color: #0f172a;
}

@keyframes tb-spin {
    to { transform: rotate(360deg); }
}

@keyframes tb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

/* Native HTML5 Controls & Media Styling */
.tb-video-element::-webkit-media-controls-enclosure {
    border-radius: 0 0 16px 16px;
}




/* Archive Detection Box */
.tb-archive-box {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    animation: tb-fade-in 0.25s ease;
}

.tb-archive-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tb-archive-icon {
    font-size: 28px;
    line-height: 1;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 10px;
    flex-shrink: 0;
}

.tb-archive-details {
    flex: 1;
    min-width: 0;
}

.tb-archive-title {
    font-size: 15px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 4px;
}

.tb-archive-name {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    word-break: break-all;
    margin-bottom: 6px;
}

.tb-archive-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

/* Playlist / Multi-Video Drawer */
.tb-playlist-container {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    margin-top: 14px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    animation: tb-fade-in 0.25s ease;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.tb-playlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
    max-width: 100%;
}

.tb-playlist-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.tb-playlist-icon {
    width: 18px;
    height: 18px;
    stroke: #60a5fa;
    fill: none;
    flex-shrink: 0;
}

.tb-playlist-title {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tb-playlist-count {
    font-size: 11px;
    font-weight: 600;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 2px 8px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Folder Navigation & Filter Controls */
.tb-playlist-nav-wrap {
    padding: 12px 14px 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 23, 42, 0.25);
}

.tb-playlist-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tb-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tb-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.tb-filter-btn.tb-filter-active {
    background: rgba(37, 99, 235, 0.25);
    border-color: #3b82f6;
    color: #93c5fd;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.tb-playlist-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.4);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.tb-breadcrumb-link {
    color: #60a5fa;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.15s ease;
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
}

.tb-breadcrumb-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.tb-breadcrumb-sep {
    color: #475569;
    font-size: 11px;
}

.tb-breadcrumb-current {
    color: #e2e8f0;
    font-weight: 600;
}

.tb-playlist-subfolders {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tb-folder-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tb-folder-chip:hover {
    background: rgba(37, 99, 235, 0.3);
    border-color: #60a5fa;
    color: #ffffff;
    transform: translateY(-1px);
}

.tb-chip-count {
    background: rgba(255, 255, 255, 0.12);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    color: #e2e8f0;
}

.tb-playlist-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.tb-folder-pill {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tb-playlist-empty {
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
    grid-column: 1 / -1;
}

.tb-playlist-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

@media (min-width: 640px) {
    .tb-playlist-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.tb-playlist-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.tb-playlist-item:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-1px);
}

.tb-playlist-item.tb-playlist-active {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.tb-playlist-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.tb-playlist-num {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tb-playlist-item.tb-playlist-active .tb-playlist-num {
    background: #2563eb;
    color: #ffffff;
}

.tb-playlist-info {
    min-width: 0;
    flex: 1;
}

.tb-playlist-name {
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.tb-playlist-item.tb-playlist-active .tb-playlist-name {
    color: #93c5fd;
}

.tb-playlist-meta {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.tb-playlist-right {
    flex-shrink: 0;
}

.tb-playlist-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    transition: all 0.15s ease;
}

.tb-playlist-item:hover .tb-playlist-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.tb-playlist-item.tb-playlist-active .tb-playlist-badge {
    background: #2563eb;
    color: #ffffff;
}

/* ==========================================================================
   Preparing / Loading State (Reference Screenshot 1)
   ========================================================================== */
.tb-minimal-loader {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
    border-radius: inherit;
}

.tb-minimal-loader.tb-hidden {
    display: none !important;
}

.tb-minimal-loader.tb-loader-dismiss {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
}

.tb-loader-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.tb-spinner-ring {
    width: 36px;
    height: 36px;
    border: 3.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: tbSpin 0.75s linear infinite;
    flex-shrink: 0;
    margin-bottom: 14px;
}

.tb-loader-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    line-height: 1.3;
}

.tb-loader-text {
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.4;
}

/* ==========================================================================
   Poster / Thumbnail Container (Ready State Preview)
   ========================================================================== */
.tb-poster-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 14;
    overflow: hidden;
    cursor: pointer;
    background: #0b0f19;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.tb-poster-container.tb-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.tb-poster-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 40%, #1e293b 0%, #0f172a 60%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-poster-fallback-icon {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-poster-fallback-icon svg {
    width: 100%;
    height: 100%;
}

.tb-poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: transform 0.4s ease;
}

.tb-poster-container:hover .tb-poster-img {
    transform: scale(1.02);
}

.tb-poster-badges {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 639px) {
    .tb-poster-badges {
        bottom: 12px;
        left: 12px;
    }
}

.tb-poster-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: rgba(0, 0, 0, 0.22);
    transition: background 0.2s ease;
}

.tb-poster-container:hover .tb-poster-play-btn {
    background: rgba(0, 0, 0, 0.12);
}

.tb-poster-container:hover .tb-poster-play-btn .tb-play-circle {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(37, 99, 235, 1));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 32px rgba(59, 130, 246, 0.6);
}

/* ==========================================================================
   Overlaid Badges on Video (Reference Screenshot 2)
   ========================================================================== */
.tb-video-overlay-badges {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tb-viewport:hover .tb-video-overlay-badges,
.tb-player-box:not(.tb-paused) .tb-video-overlay-badges {
    opacity: 0.85;
}

.tb-overlay-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tb-overlay-badge svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* ==========================================================================
   Video Details Container (Skeleton & Ready States)
   ========================================================================== */
.tb-details-container {
    margin-top: 14px;
    padding: 0 4px;
}

/* Video Details Loading State */
.tb-skeleton-details {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tb-details-loading-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.7));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 195px;
    box-sizing: border-box;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.tb-details-loading-spinner-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.tb-details-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #38bdf8;
    border-right-color: #818cf8;
    border-radius: 50%;
    animation: tbSpin 0.85s linear infinite;
    box-sizing: border-box;
}

.tb-details-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tb-details-loading-title {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.tb-details-loading-subtitle {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
    max-width: 360px;
}

.tb-details-loading-bar-wrap {
    width: 140px;
    max-width: 70%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 16px;
    position: relative;
}

.tb-details-loading-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    border-radius: 9999px;
    animation: tbIndeterminate 1.6s ease-in-out infinite;
}

@keyframes tbIndeterminate {
    0% {
        left: -50%;
        width: 40%;
    }
    50% {
        left: 25%;
        width: 60%;
    }
    100% {
        left: 100%;
        width: 40%;
    }
}

@media (max-width: 640px) {
    .tb-details-loading-card {
        padding: 22px 16px;
        min-height: 180px;
    }
    .tb-details-spinner {
        width: 28px;
        height: 28px;
        border-width: 2.5px;
    }
    .tb-details-loading-title {
        font-size: 14px;
    }
    .tb-details-loading-subtitle {
        font-size: 12px;
    }
    .tb-details-loading-bar-wrap {
        width: 120px;
        margin-top: 14px;
    }
}

/* Populated Ready State (Reference Screenshot 2) */
.tb-ready-details {
    display: flex;
    flex-direction: column;
}

.tb-video-title-main {
    font-size: 19px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 14px 0;
    line-height: 1.35;
    word-break: break-word;
    letter-spacing: -0.01em;
}

@media (min-width: 640px) {
    .tb-video-title-main {
        font-size: 22px;
    }
}

/* 4 Metadata Cards in 2x2 Grid */
.tb-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.tb-meta-card {
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s, background 0.2s;
}

.tb-meta-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(30, 41, 59, 0.85);
}

.tb-meta-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tb-meta-label svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.tb-meta-val {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

/* ==========================================================================
   Action Buttons (Watch Now, Process Another Link, Copy, Share)
   ========================================================================== */

/* Main Action Row: Watch Now + Process another link side by side */
.tb-main-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
}

/* Primary Watch Now / Play Action Button */
.tb-watch-now-btn {
    flex: 1.1;
    min-height: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.45);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    white-space: nowrap;
    padding: 0 16px;
    box-sizing: border-box;
}

.tb-watch-now-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -4px rgba(99, 102, 241, 0.6);
}

.tb-watch-now-btn:active {
    transform: scale(0.98);
}

.tb-watch-now-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Process Another Link Button */
.tb-reset-btn {
    flex: 1;
    min-height: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 12px;
    color: #f8fafc;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.tb-reset-btn:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(129, 140, 248, 0.7);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.tb-reset-btn:active {
    transform: scale(0.98);
}

.tb-reset-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #818cf8;
    transition: transform 0.35s ease;
}

.tb-reset-btn:hover svg {
    transform: rotate(180deg);
}

/* Secondary Actions (Copy Link & Share) */
.tb-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 14px;
}

.tb-copy-link-btn,
.tb-share-link-btn {
    flex: 1;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    min-height: 42px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.tb-copy-link-btn:hover,
.tb-share-link-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.26);
    color: #ffffff;
    transform: translateY(-1px);
}

.tb-copy-link-btn:active,
.tb-share-link-btn:active {
    transform: scale(0.98);
}

.tb-copy-link-btn svg,
.tb-share-link-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

@media (max-width: 420px) {
    .tb-main-action-row {
        gap: 8px;
    }
    .tb-watch-now-btn,
    .tb-reset-btn {
        font-size: 12.5px;
        padding: 0 10px;
        gap: 6px;
    }
    .tb-watch-now-btn svg,
    .tb-reset-btn svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 330px) {
    .tb-main-action-row {
        flex-direction: column;
    }
    .tb-watch-now-btn,
    .tb-reset-btn {
        width: 100%;
    }
}

@keyframes tbSpin {
    to { transform: rotate(360deg); }
}

@keyframes tbShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================================================
   EMPTY FOLDER NOTICE
   ========================================================================== */
.tb-empty-box {
    margin: 18px 0;
}
.tb-empty-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
.tb-empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}
.tb-empty-title {
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
}
.tb-empty-msg {
    font-size: 13.5px;
    color: #94a3b8;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==========================================================================
   ERROR NOTICE ENHANCEMENTS (RETRY & PASSWORD)
   ========================================================================== */
.tb-error-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.tb-retry-btn {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.tb-retry-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}
.tb-error-pwd-box {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(239, 68, 68, 0.25);
}
.tb-error-pwd-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 6px;
    color: #f8fafc;
    padding: 6px 12px;
    font-size: 13px;
    outline: none;
}
.tb-error-pwd-input:focus {
    border-color: #ef4444;
}
.tb-error-pwd-submit {
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}
.tb-error-pwd-submit:hover {
    background: #dc2626;
}

/* ==========================================================================
   NON-VIDEO FILES GALLERY / EXPLORER
   ========================================================================== */
.tb-files-box {
    margin: 20px 0;
}
.tb-files-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.tb-files-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tb-files-icon-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tb-files-badge-icon {
    font-size: 26px;
    line-height: 1;
}
.tb-files-title {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    line-height: 1.3;
}
.tb-files-submsg {
    font-size: 12.5px;
    color: #94a3b8;
    margin: 3px 0 0;
    line-height: 1.4;
}
.tb-files-count-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.tb-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}
.tb-file-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.tb-file-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.tb-file-thumb-wrap {
    width: 100%;
    height: 130px;
    background: #090d16;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tb-file-thumb {
    width: 100%;
    height: 130px;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.tb-file-card:hover .tb-file-thumb {
    transform: scale(1.04);
}
.tb-file-icon-wrap {
    width: 100%;
    height: 100px;
    background: #090d16;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tb-file-big-icon {
    font-size: 38px;
    line-height: 1;
}
.tb-file-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.tb-file-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.tb-file-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}
.tb-file-badge {
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10.5px;
    text-transform: uppercase;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}
.tb-file-badge-image { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tb-file-badge-document { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.tb-file-badge-archive { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tb-file-badge-audio { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.tb-file-badge-software { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.tb-file-size {
    color: #94a3b8;
    font-size: 11px;
}
.tb-file-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}
.tb-file-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    text-align: center;
}
.tb-file-btn-download {
    background: #2563eb;
    color: #ffffff;
}
.tb-file-btn-download:hover {
    background: #1d4ed8;
    color: #ffffff;
}
.tb-file-btn-preview {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    flex: 0 0 auto;
    padding: 6px 9px;
}
.tb-file-btn-preview:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

/* Playlist non-video row items */
.tb-playlist-nonvideo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.tb-playlist-file-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.tb-playlist-item-info {
    flex: 1;
    min-width: 0;
}
.tb-playlist-item-title {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tb-playlist-item-meta {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}
.tb-playlist-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.tb-playlist-btn-dl {
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.tb-playlist-btn-dl:hover {
    background: #1d4ed8;
}
.tb-playlist-btn-view {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.tb-playlist-btn-view:hover {
    background: rgba(255, 255, 255, 0.16);
}


