/* PodStream page-chrome styles.
   Extracted from header.php inline <style> for caching. Loaded before style.css. */
        :root {
            --primary-color: #ffffff;
            --primary-gradient: linear-gradient(135deg, #3a6d8c, #21384a);
            --bg-color: #0f172a;
            --surface-color: #1e293b;
            --text-color: #f1f5f9;
            --text-muted: #94a3b8;
            --heading-color: #f8fafc;
            --nav-color: #cbd5e1;
            --border-color: #334155;
            --shadow-color: rgba(0, 0, 0, 0.4);
            --card-bg: rgba(30, 41, 59, 0.9);
            --input-bg: #0f172a;
            --input-border: #334155;
            --footer-bg: #020617;
            --footer-text: #f1f5f9;
            --accent-color: #3a6d8c;
            --success-color: #10b981;
            --error-color: #ef4444;
            --radius-lg: 24px;
            --radius-md: 16px;
            --radius-sm: 10px;
            --transition: all 0.3s ease;
            --video-bg-start: #0f172a;
            --site-header-height: 80px;
            --top-ad-offset: 0px;
            --homepage-top-ad-height: 0px
        }

        .hero-error {
            display: none;
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
            padding: 12px 20px;
            border-radius: var(--radius-sm);
            margin-top: 1rem;
            border: 1px solid rgba(239, 68, 68, 0.2);
            font-size: 0.95rem;
            font-weight: 600;
            text-align: center;
            animation: fadeIn 0.3s ease;
            width: 100%;
            max-width: 800px;
        }

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

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
            line-height: 1.6;
            color: var(--text-color);
            background: var(--bg-color);
            margin: 0;
            padding-top: calc(var(--site-header-height) + var(--top-ad-offset))
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px
        }

        .content-wrapper {
            padding: 4rem 0;
            background: var(--surface-color);
            min-height: 100vh;
            border-radius: var(--radius-lg);
            box-shadow: 0 10px 40px var(--shadow-color);
            position: relative;
            z-index: 10;
            margin: 2rem auto
        }

        .faq-page,
        .tutorial-page,
        .bot-page {
            max-width: 1000px;
            margin: 0 auto;
            padding: 4rem 20px
        }

        .content-section {
            margin-bottom: 4rem;
            padding-top: 0
        }

        .section-title,
        .page-title {
            text-align: center;
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 2rem;
            margin-top: 0;
            color: var(--heading-color);
            line-height: 1.2;
            min-height: 2.4rem;
            hyphens: auto
        }

        .section-description {
            text-align: center;
            color: var(--text-muted);
            max-width: 700px;
            margin: 0 auto 2.5rem;
            font-size: 1.1rem;
            line-height: 1.5
        }

        .faq-page .section-title {
            font-size: 1.75rem;
            line-height: 1.3;
            min-height: 2.275rem;
            margin-bottom: 1.5rem;
            text-align: center;
            color: var(--heading-color);
            font-weight: 700
        }

        .text-content {
            margin-bottom: 1.5rem;
            line-height: 1.7;
            font-size: 1.05rem;
            overflow-wrap: break-word;
            word-break: break-word;
            hyphens: auto
        }

        .bot-hero-card {
            background: var(--primary-gradient);
            color: white;
            text-align: center;
            padding: 4rem 2rem;
            margin-bottom: 4rem;
            min-height: 450px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center
        }

        .card {
            background: var(--surface-color);
            padding: 2rem;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
            margin-bottom: 2rem;
            min-height: 180px;
            transition: transform 0.3s ease, box-shadow 0.3s ease
        }

        .faq-page .card h3 {
            font-size: 1.25rem;
            line-height: 1.4;
            margin-bottom: 1rem;
            font-weight: 700;
            color: var(--heading-color);
            min-height: 1.75rem
        }

        .faq-page .card p {
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 0;
            color: var(--text-color)
        }

        .content-card {
            max-width: 900px;
            margin: 0 auto;
            padding: 3.5rem
        }

        .content-section h2 {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: var(--heading-color)
        }

        .grid {
            display: grid;
            gap: 2rem
        }

        .grid-2 {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))
        }

        @media (max-width:768px) {
            body {
                --site-header-height: 60px
            }

            .container {
                padding: 0 12px
            }

            .content-wrapper {
                padding: 1.5rem 0;
                margin: 1rem auto
            }

            .faq-page,
            .tutorial-page,
            .bot-page {
                padding: 1.5rem 12px;
                contain: content;
                min-height: 100vh
            }

            .main-content {
                margin: 1rem auto;
                padding: 1.25rem
            }

            .page-title {
                font-size: 1.25rem;
                line-height: 1.3;
                min-height: 3.25rem;
                margin-bottom: 1.25rem;
                margin-top: 0
            }

            .faq-page .section-title,
            .tutorial-page .section-title,
            .bot-page .section-title {
                font-size: 1.35rem;
                min-height: 1.755rem;
                margin-bottom: 1.5rem
            }

            .card {
                padding: 1.25rem;
                min-height: 160px;
                margin-bottom: 1.25rem
            }

            .faq-page .card,
            .tutorial-page .card,
            .bot-page .card {
                padding: 1rem
            }

            .faq-page .card h3,
            .tutorial-page .card h3,
            .bot-page .card h3 {
                font-size: 1.1rem;
                min-height: 1.55rem
            }

            .faq-page .card p,
            .tutorial-page .card p,
            .bot-page .card p {
                font-size: 0.95rem
            }

            .grid-2,
            .grid-3 {
                grid-template-columns: 1fr;
                gap: 1rem
            }

            .legal-container {
                padding: 1.5rem 12px
            }

            .legal-card {
                padding: 1.25rem
            }

            .legal-section {
                margin-bottom: 2rem
            }

            .content-section {
                margin-bottom: 2.5rem
            }

            .hero-card {
                padding: 1.75rem 1.25rem
            }

            .hero-card h1 {
                font-size: 1.75rem;
                margin-bottom: 1.25rem
            }

            .hero-card h1 span {
                font-size: 1.1rem
            }

            .input-group {
                flex-direction: column
            }

            .url-input,
            .btn {
                width: 100%
            }
        }

        @media (max-width:480px) {
            .container {
                padding: 0 10px
            }

            .faq-page,
            .tutorial-page,
            .bot-page,
            .legal-container {
                padding: 1rem 10px
            }

            .content-card,
            .legal-card {
                padding: 1rem 0.75rem
            }

            .card {
                padding: 1rem
            }

            .faq-page .card,
            .tutorial-page .card,
            .bot-page .card {
                padding: 0.85rem
            }

            .section-title,
            .page-title {
                font-size: 1.25rem
            }

            .faq-page .section-title,
            .tutorial-page .section-title,
            .bot-page .section-title {
                font-size: 1.2rem
            }

            .content-wrapper {
                padding: 1rem 0
            }

            .content-section {
                margin-bottom: 2rem
            }

            .legal-section {
                margin-bottom: 1.75rem
            }

            .hero-card {
                padding: 1.5rem 1rem
            }

            .hero-card h1 {
                font-size: 1.5rem
            }

            .hero-card h1 span {
                font-size: 1rem
            }
        }

        .header {
            background: var(--surface-color);
            box-shadow: 0 2px 10px var(--shadow-color);
            position: fixed;
            top: var(--top-ad-offset);
            z-index: 1000;
            width: 100%;
            height: 80px;
            display: flex;
            align-items: center
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
            width: 100%;
            gap: 1.5rem
        }

        .logo {
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.75rem
        }

        .logo-text {
            display: flex;
            flex-direction: column
        }

        .logo-title {
            font-size: 1.5rem;
            font-weight: 800;
            color: #ffffff;
            line-height: 1
        }

        .logo-slogan {
            font-size: 0.7rem;
            color: var(--text-muted);
            font-weight: 500;
            margin-top: 2px;
            white-space: nowrap
        }

        .logo-img {
            width: 42px;
            height: 42px;
            display: block
        }

        @media (max-width:600px) {
            .logo-slogan {
                display: none
            }

            .header {
                height: 72px
            }
        }

        .logo-img {
            filter: drop-shadow(0 0 5px rgba(96, 165, 250, 0.4))
        }

        .nav {
            display: flex;
            gap: 1.25rem;
            align-items: center
        }

        .nav a {
            text-decoration: none;
            color: var(--nav-color);
            font-weight: 600;
            transition: var(--transition);
            font-size: 0.9rem;
            position: relative;
            padding: 10px 0;
            display: inline-flex;
            align-items: center;
            white-space: nowrap
        }

        .nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: var(--transition)
        }

        .nav a:hover::after,
        .nav a.active::after {
            width: 100%
        }

        .nav a:hover,
        .nav a.active {
            color: var(--primary-color)
        }

        .lang-switcher {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            padding: 3px;
            border-radius: 50px;
            margin-left: 1rem;
            flex-shrink: 0
        }

        .lang-switcher {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            padding: 3px;
            border-radius: 50px;
            margin-left: 1rem;
            flex-shrink: 0
        }

        .lang-link {
            text-decoration: none;
            font-size: 0.65rem;
            font-weight: 700;
            color: var(--nav-color);
            padding: 3px 8px;
            border-radius: 50px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            white-space: nowrap;
            line-height: 1;
            min-width: 56px;
            position: relative
        }

        .lang-link::after {
            display: none !important
        }

        .lang-flag {
            font-size: 0.85rem;
            display: flex;
            align-items: center
        }

        .lang-link.active {
            background: #ffffff;
            color: #1e293b !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2)
        }

        .mobile-menu-btn {
            display: none;
            background: transparent;
            border: none;
            cursor: pointer;
            width: 30px;
            height: 25px;
            flex-direction: column;
            justify-content: space-around;
            padding: 0;
            margin-left: auto
        }

        .mobile-menu-btn span {
            width: 100%;
            height: 3px;
            background: var(--primary-color);
            border-radius: 10px;
            transition: var(--transition)
        }

        #toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px
        }

        .toast {
            background: var(--surface-color);
            color: var(--text-color);
            padding: 12px 20px;
            border-radius: var(--radius-sm);
            box-shadow: 0 10px 30px var(--shadow-color);
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 300px;
            border: 1px solid var(--border-color);
            transform: translateX(120%);
            transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55)
        }

        .toast.show {
            transform: translateX(0)
        }

        .toast-icon {
            font-size: 1.25rem;
            flex-shrink: 0
        }

        .toast-message {
            flex-grow: 1;
            font-size: 0.9rem;
            font-weight: 600
        }

        .toast-close {
            cursor: pointer;
            opacity: 0.5;
            padding: 5px;
            transition: var(--transition)
        }

        .toast-close:hover {
            opacity: 1
        }

        .toast-success {
            border-left: 4px solid var(--success-color)
        }

        .toast-error {
            border-left: 4px solid var(--error-color)
        }

        .toast-warning {
            border-left: 4px solid orange
        }

        .toast-info {
            border-left: 4px solid var(--primary-color)
        }

        .main-content {
            background: var(--surface-color);
            margin: 2rem auto;
            padding: 2rem;
            border-radius: var(--radius-md);
            box-shadow: 0 5px 20px var(--shadow-color);
            min-height: 70vh
        }

        .main-content-video-mode {
            background: transparent !important;
            box-shadow: none !important;
            padding: 0 !important;
            margin: 0 auto !important
        }

        .hero-wrapper {
            min-height: calc(100vh - var(--site-header-height) - var(--top-ad-offset));
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 60px 20px 80px
        }

        .page-home .hero-wrapper {
            min-height: calc(100vh - var(--site-header-height) - var(--top-ad-offset) - var(--homepage-top-ad-height) - 24px);
            justify-content: center;
            padding: 24px 20px 56px
        }

        .page-home .homepage-top-ad-slot {
            width: 100vw;
            max-width: 100vw;
            margin: 16px auto 8px;
            display: grid;
            justify-items: center;
            gap: 16px;
            position: relative;
            z-index: 3;
            padding: 0 12px;
            box-sizing: border-box
        }

        .page-home .homepage-top-ad-slot:empty {
            display: none
        }

        @media (max-width:1199px) {
            .page-home .homepage-top-ad-slot {
                display: none !important
            }
        }

        .page-home .homepage-top-ad-slot>div,
        .page-home .homepage-top-ad-slot>ins,
        .page-home .homepage-top-ad-slot>section,
        .page-home .homepage-top-ad-slot>iframe {
            width: auto !important;
            max-width: 100% !important;
            margin-left: auto !important;
            margin-right: auto !important;
            box-sizing: border-box
        }

        .page-home main,
        .page-home .main-content-video-mode {
            overflow-x: hidden
        }

        .apps-section-ad-slot {
            width: 100%;
            margin: 24px 0 0;
            display: grid;
            justify-items: center;
            gap: 16px
        }

        .apps-section-ad-slot:empty {
            display: none
        }

        .apps-section-ad-slot>div,
        .apps-section-ad-slot>ins,
        .apps-section-ad-slot>section,
        .apps-section-ad-slot>iframe {
            max-width: 100%
        }

        .section-ad-slot {
            width: 100%;
            margin: 24px 0 0;
            display: grid;
            justify-items: center;
            gap: 16px
        }

        .section-ad-slot:empty {
            display: none
        }

        .section-ad-slot>div,
        .section-ad-slot>ins,
        .section-ad-slot>section,
        .section-ad-slot>iframe {
            max-width: 100%
        }

        .hero-card {
            background: var(--card-bg);
            backdrop-filter: blur(15px);
            padding: 2.5rem;
            border-radius: var(--radius-lg);
            box-shadow: 0 20px 60px var(--shadow-color);
            width: 100%;
            max-width: 800px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            text-align: center;
            position: relative;
            z-index: 2
        }

        .hero-card h1 {
            font-size: 2.5rem;
            margin-bottom: 2rem;
            color: var(--heading-color)
        }

        .hero-card h1 span {
            display: block;
            font-size: 1.4rem;
            margin-top: 5px;
            opacity: 0.8
        }

        .hero-card p {
            color: var(--text-color);
            margin-bottom: 1.5rem
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 28px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            font-size: 1rem;
            gap: 10px;
            white-space: nowrap
        }

        .btn-primary {
            background: var(--primary-gradient);
            color: #fff !important
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15)
        }

        .btn-secondary {
            background: var(--bg-color);
            color: var(--text-color) !important;
            border: 1px solid var(--border-color)
        }

        .btn-secondary:hover {
            background: var(--border-color)
        }

        .url-input {
            width: 100%;
            height: 56px;
            padding: 0 24px;
            border: 2px solid var(--input-border);
            border-radius: var(--radius-sm);
            font-size: 1.1rem;
            background: var(--input-bg);
            color: var(--text-color);
            transition: var(--transition)
        }

        .url-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(33, 56, 74, 0.1)
        }

        .input-group {
            display: flex;
            gap: 12px;
            margin-bottom: 1.5rem
        }

        @media (max-width:768px) {
            .header {
                height: 60px
            }

            .mobile-menu-btn {
                display: flex;
                margin-left: auto
            }

            .nav {
                display: none;
                position: absolute;
                top: 60px;
                left: 0;
                width: 100%;
                background: var(--surface-color);
                flex-direction: column;
                padding: 2rem;
                box-shadow: 0 15px 30px var(--shadow-color);
                gap: 1.5rem;
                border-top: 1px solid var(--border-color)
            }

            .nav.active {
                display: flex
            }

            .hero-card {
                padding: 2rem 1.5rem
            }

            .page-home .hero-wrapper {
                min-height: auto;
                padding: 16px 12px 40px
            }

            .page-home .homepage-top-ad-slot {
                margin: 12px auto 4px;
                gap: 12px
            }

            .hero-card h1 {
                font-size: 2rem
            }

            .input-group {
                flex-direction: column
            }

            .url-input,
            .btn {
                width: 100%
            }
        }
