/*
Theme Name: TubePrestige
Theme URI: https://example.com/tubeprestige
Author: Claude
Author URI: https://example.com
Description: Elegancka, w pełni konfigurowalna skórka WordPress dedykowana prezentacji kanału YouTube. Obsługuje tło wideo/obraz w headerze, osadzanie filmów YouTube, sekcje z playlistami, grid filmów, integrację z YouTube API i wiele więcej. Wszystko konfigurowalne z poziomu Customizera.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tubeprestige
Tags: youtube, video, portfolio, one-column, custom-header, custom-background, custom-colors, featured-images, full-width-template, theme-options
*/

/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
:root {
    --tp-primary: #ff0033;
    --tp-primary-hover: #cc0029;
    --tp-secondary: #0a0a0f;
    --tp-accent: #ffd700;
    --tp-bg: #0d0d14;
    --tp-bg-alt: #13131e;
    --tp-surface: #1a1a28;
    --tp-surface-hover: #222236;
    --tp-text: #e8e8f0;
    --tp-text-muted: #8888a0;
    --tp-text-heading: #ffffff;
    --tp-border: rgba(255,255,255,0.08);
    --tp-border-accent: rgba(255,0,51,0.3);
    --tp-shadow: 0 4px 24px rgba(0,0,0,0.4);
    --tp-shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
    --tp-radius: 12px;
    --tp-radius-sm: 8px;
    --tp-radius-lg: 20px;
    --tp-font-heading: 'Bebas Neue', 'Impact', sans-serif;
    --tp-font-body: 'DM Sans', 'Segoe UI', sans-serif;
    --tp-font-mono: 'JetBrains Mono', monospace;
    --tp-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --tp-transition-fast: 0.15s ease;
    --tp-max-width: 1400px;
    --tp-header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--tp-font-body);
    background-color: var(--tp-bg);
    color: var(--tp-text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--tp-primary);
    text-decoration: none;
    transition: color var(--tp-transition-fast);
}

a:hover { color: var(--tp-accent); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tp-font-heading);
    color: var(--tp-text-heading);
    line-height: 1.1;
    letter-spacing: 0.02em;
}

/* ============================================================
   UTILITY
   ============================================================ */
.tp-container {
    width: 100%;
    max-width: var(--tp-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.tp-section {
    padding: 100px 0;
    position: relative;
}

.tp-section-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.tp-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--tp-primary);
    margin-top: 12px;
    border-radius: 2px;
}

.tp-section-subtitle {
    font-size: 1.1rem;
    color: var(--tp-text-muted);
    margin-bottom: 48px;
    max-width: 600px;
}

.tp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--tp-font-heading);
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--tp-radius-sm);
    cursor: pointer;
    transition: all var(--tp-transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.tp-btn-primary {
    background: var(--tp-primary);
    color: #fff;
}

.tp-btn-primary:hover {
    background: var(--tp-primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,0,51,0.35);
}

.tp-btn-outline {
    background: transparent;
    color: var(--tp-text);
    border: 2px solid var(--tp-border);
}

.tp-btn-outline:hover {
    border-color: var(--tp-primary);
    color: var(--tp-primary);
    transform: translateY(-2px);
}

.tp-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================================
   PRELOADER
   ============================================================ */
.tp-preloader {
    position: fixed;
    inset: 0;
    background: var(--tp-secondary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.tp-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tp-preloader-icon {
    width: 60px;
    height: 60px;
    position: relative;
}

.tp-preloader-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--tp-border);
    border-top-color: var(--tp-primary);
    border-radius: 50%;
    animation: tp-spin 0.8s linear infinite;
}

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.tp-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--tp-header-height);
    display: flex;
    align-items: center;
    transition: all var(--tp-transition);
    background: transparent;
}

.tp-navbar.scrolled {
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--tp-border);
    box-shadow: var(--tp-shadow);
}

.tp-navbar .tp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tp-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.tp-logo-img {
    height: 42px;
    width: auto;
    border-radius: var(--tp-radius-sm);
}

.tp-logo-text {
    font-family: var(--tp-font-heading);
    font-size: 1.8rem;
    color: var(--tp-text-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tp-logo-text span {
    color: var(--tp-primary);
}

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

.tp-nav-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--tp-text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: var(--tp-radius-sm);
    transition: all var(--tp-transition-fast);
}

.tp-nav-menu a:hover,
.tp-nav-menu .current-menu-item a {
    color: var(--tp-text-heading);
    background: rgba(255,255,255,0.05);
}

.tp-nav-subscribe {
    margin-left: 12px;
}

.tp-nav-subscribe .tp-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
}

/* Hamburger */
.tp-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.tp-hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--tp-text);
    border-radius: 2px;
    transition: all var(--tp-transition);
}

.tp-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.tp-hamburger.active span:nth-child(2) { opacity: 0; }
.tp-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile menu */
.tp-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(30px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--tp-transition);
}

.tp-mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.tp-mobile-menu a {
    font-family: var(--tp-font-heading);
    font-size: 2.4rem;
    color: var(--tp-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 24px;
    transition: color var(--tp-transition-fast);
}

.tp-mobile-menu a:hover {
    color: var(--tp-primary);
}

/* ============================================================
   HERO / HEADER
   ============================================================ */
.tp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background types */
.tp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tp-hero-bg img,
.tp-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-hero-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    min-width: 120vw;
    min-height: 120vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
}

.tp-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(10,10,15,0.5) 0%,
        rgba(10,10,15,0.3) 40%,
        rgba(10,10,15,0.7) 80%,
        rgba(13,13,20,1) 100%
    );
}

.tp-hero-overlay--pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(255,0,51,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255,215,0,0.05) 0%, transparent 50%);
    mix-blend-mode: screen;
}

.tp-hero-noise {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Hero Content */
.tp-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.tp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,0,51,0.12);
    border: 1px solid rgba(255,0,51,0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tp-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 28px;
    animation: tp-fadeInUp 0.8s ease both;
}

.tp-hero-badge svg {
    width: 16px;
    height: 16px;
    fill: var(--tp-primary);
}

.tp-hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: tp-fadeInUp 0.8s ease 0.15s both;
    text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.tp-hero-title span {
    color: var(--tp-primary);
    position: relative;
}

.tp-hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--tp-text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
    animation: tp-fadeInUp 0.8s ease 0.3s both;
}

.tp-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: tp-fadeInUp 0.8s ease 0.45s both;
}

.tp-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    animation: tp-fadeInUp 0.8s ease 0.6s both;
}

.tp-hero-stat {
    text-align: center;
}

.tp-hero-stat-value {
    font-family: var(--tp-font-heading);
    font-size: 2.8rem;
    color: var(--tp-text-heading);
    line-height: 1;
}

.tp-hero-stat-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tp-text-muted);
    margin-top: 4px;
}

/* Featured video in hero */
.tp-hero-featured-video {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 960px;
    margin: 48px auto 0;
    animation: tp-fadeInUp 0.8s ease 0.5s both;
}

.tp-hero-featured-video .tp-video-wrapper {
    border-radius: var(--tp-radius-lg);
    overflow: hidden;
    box-shadow: var(--tp-shadow-lg), 0 0 80px rgba(255,0,51,0.12);
    border: 1px solid rgba(255,255,255,0.06);
}

/* Scroll indicator */
.tp-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: tp-bounce 2s infinite;
}

.tp-scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    position: relative;
}

.tp-scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--tp-primary);
    border-radius: 2px;
    animation: tp-scrollDot 2s infinite;
}

@keyframes tp-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes tp-scrollDot {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 22px; }
}

@keyframes tp-fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   VIDEO EMBED
   ============================================================ */
.tp-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--tp-radius);
    background: var(--tp-surface);
}

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

/* ============================================================
   FEATURED / LATEST VIDEO SECTION
   ============================================================ */
.tp-featured-section {
    background: var(--tp-bg);
}

.tp-featured-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tp-featured-video-wrap {
    position: relative;
}

.tp-featured-video-wrap .tp-video-wrapper {
    box-shadow: var(--tp-shadow-lg);
    border: 1px solid var(--tp-border);
}

.tp-featured-video-wrap::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--tp-primary), transparent 60%);
    border-radius: calc(var(--tp-radius) + 4px);
    z-index: -1;
    opacity: 0.4;
}

.tp-featured-info h3 {
    font-size: 2.4rem;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tp-featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--tp-text-muted);
}

.tp-featured-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp-featured-meta-item svg {
    width: 16px;
    height: 16px;
    fill: var(--tp-text-muted);
}

.tp-featured-description {
    color: var(--tp-text-muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================================
   VIDEO GRID
   ============================================================ */
.tp-videos-section {
    background: var(--tp-bg-alt);
}

.tp-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.tp-video-card {
    background: var(--tp-surface);
    border-radius: var(--tp-radius);
    overflow: hidden;
    border: 1px solid var(--tp-border);
    transition: all var(--tp-transition);
    position: relative;
}

.tp-video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tp-shadow-lg);
    border-color: var(--tp-border-accent);
}

.tp-video-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.tp-video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tp-transition);
}

.tp-video-card:hover .tp-video-card-thumb img {
    transform: scale(1.05);
}

.tp-video-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity var(--tp-transition);
}

.tp-video-card:hover .tp-video-card-play {
    opacity: 1;
}

.tp-video-card-play-icon {
    width: 64px;
    height: 64px;
    background: var(--tp-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255,0,51,0.5);
    transition: transform var(--tp-transition);
}

.tp-video-card:hover .tp-video-card-play-icon {
    transform: scale(1.1);
}

.tp-video-card-play-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    margin-left: 3px;
}

.tp-video-card-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--tp-font-mono);
}

.tp-video-card-body {
    padding: 20px;
}

.tp-video-card-title {
    font-family: var(--tp-font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tp-text-heading);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tp-video-card-meta {
    font-size: 0.82rem;
    color: var(--tp-text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================================
   ABOUT / CHANNEL INFO
   ============================================================ */
.tp-about-section {
    background: var(--tp-bg);
    position: relative;
}

.tp-about-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.tp-about-avatar {
    position: relative;
}

.tp-about-avatar img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--tp-radius-lg);
    border: 3px solid var(--tp-border);
}

.tp-about-avatar::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-accent));
    border-radius: calc(var(--tp-radius-lg) + 6px);
    z-index: -1;
    opacity: 0.5;
}

.tp-about-content h2 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.tp-about-bio {
    font-size: 1.1rem;
    color: var(--tp-text-muted);
    margin-bottom: 32px;
    line-height: 1.9;
}

.tp-about-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 36px;
}

.tp-about-stat {
    padding: 20px 28px;
    background: var(--tp-surface);
    border-radius: var(--tp-radius);
    border: 1px solid var(--tp-border);
    text-align: center;
    min-width: 130px;
}

.tp-about-stat-value {
    font-family: var(--tp-font-heading);
    font-size: 2rem;
    color: var(--tp-primary);
}

.tp-about-stat-label {
    font-size: 0.8rem;
    color: var(--tp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* Social links */
.tp-social-links {
    display: flex;
    gap: 12px;
}

.tp-social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    color: var(--tp-text-muted);
    transition: all var(--tp-transition);
}

.tp-social-link:hover {
    background: var(--tp-primary);
    border-color: var(--tp-primary);
    color: #fff;
    transform: translateY(-3px);
}

.tp-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================================
   PLAYLISTS
   ============================================================ */
.tp-playlists-section {
    background: var(--tp-bg-alt);
}

.tp-playlist-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tp-playlist-tab {
    padding: 10px 24px;
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: 50px;
    color: var(--tp-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--tp-transition);
}

.tp-playlist-tab:hover,
.tp-playlist-tab.active {
    background: var(--tp-primary);
    border-color: var(--tp-primary);
    color: #fff;
}

/* ============================================================
   CTA / SUBSCRIBE
   ============================================================ */
.tp-cta-section {
    background: var(--tp-bg);
    position: relative;
    overflow: hidden;
}

.tp-cta-box {
    position: relative;
    padding: 80px 60px;
    background: linear-gradient(135deg, var(--tp-surface) 0%, rgba(255,0,51,0.08) 100%);
    border: 1px solid var(--tp-border-accent);
    border-radius: var(--tp-radius-lg);
    text-align: center;
    overflow: hidden;
}

.tp-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,0,51,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.tp-cta-box h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
}

.tp-cta-box p {
    color: var(--tp-text-muted);
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto 36px;
    position: relative;
}

.tp-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.tp-footer {
    background: var(--tp-secondary);
    border-top: 1px solid var(--tp-border);
    padding: 60px 0 30px;
}

.tp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.tp-footer-brand .tp-logo {
    margin-bottom: 16px;
}

.tp-footer-brand p {
    color: var(--tp-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
}

.tp-footer-heading {
    font-family: var(--tp-font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    color: var(--tp-text-heading);
}

.tp-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tp-footer-links a {
    color: var(--tp-text-muted);
    font-size: 0.92rem;
    transition: all var(--tp-transition-fast);
}

.tp-footer-links a:hover {
    color: var(--tp-primary);
    padding-left: 6px;
}

.tp-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--tp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.tp-footer-copyright {
    font-size: 0.85rem;
    color: var(--tp-text-muted);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.tp-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.tp-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

.tp-animate-delay-1 { transition-delay: 0.1s; }
.tp-animate-delay-2 { transition-delay: 0.2s; }
.tp-animate-delay-3 { transition-delay: 0.3s; }
.tp-animate-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.tp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--tp-transition);
}

.tp-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.tp-lightbox-inner {
    width: 100%;
    max-width: 1100px;
}

.tp-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--tp-transition-fast);
}

.tp-lightbox-close:hover {
    background: var(--tp-primary);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.tp-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--tp-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--tp-transition);
    box-shadow: 0 4px 20px rgba(255,0,51,0.4);
}

.tp-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tp-back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255,0,51,0.5);
}

.tp-back-to-top svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .tp-featured-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tp-about-layout {
        grid-template-columns: 200px 1fr;
        gap: 40px;
    }

    .tp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .tp-nav-menu,
    .tp-nav-subscribe {
        display: none;
    }

    .tp-hamburger {
        display: flex;
    }

    .tp-mobile-menu {
        display: flex;
    }

    .tp-hero-stats {
        gap: 24px;
    }

    .tp-hero-stat-value {
        font-size: 2rem;
    }

    .tp-about-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tp-about-avatar {
        max-width: 200px;
        margin: 0 auto;
    }

    .tp-about-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .tp-social-links {
        justify-content: center;
    }

    .tp-video-grid {
        grid-template-columns: 1fr;
    }

    .tp-footer-grid {
        grid-template-columns: 1fr;
    }

    .tp-cta-box {
        padding: 50px 24px;
    }

    .tp-section {
        padding: 60px 0;
    }

    .tp-footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tp-hero-title {
        font-size: 2.6rem;
    }

    .tp-hero-stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* ── Grid loading / spinner ── */
.tp-grid-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 0;
    color: var(--tp-text-muted);
    font-size: .95rem;
}

.tp-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--tp-surface);
    border-top-color: var(--tp-primary);
    border-radius: 50%;
    animation: tp-spin .7s linear infinite;
}

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

.tp-playlist-tab small {
    opacity: .55;
    font-size: .8em;
    margin-left: 4px;
}
