:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --primary-color: #3b82f6;
    --secondary-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --overlay-gradient: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
}

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

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.view-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-count svg {
    width: 14px;
    height: 14px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* Skeleton Loading Shimmer */
.skeleton {
    background: #f1f5f9;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Social Proof: Live Counter */
.live-counter {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    border: 1px solid rgba(255,255,255,0.1);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Exit Intent Popup */
.exit-intent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.exit-intent-modal {
    background: #fff;
    width: 100%;
    max-width: 360px;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.exit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.exit-intent-modal h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.8rem;
}

.exit-intent-modal p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.exit-btn-stay {
    display: block;
    background: #007aff;
    color: #fff;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
}

.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.header-logo-img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--primary-color);
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Disclaimer Ticker ───────────────────────────────────────── */
.disclaimer-ticker {
    background: #fffbeb;
    border-top: 1px solid #fde68a;
    border-bottom: 1px solid #fde68a;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 99;
    padding: 6px 0;
}

.ticker-track {
    display: inline-flex;
    animation: ticker-rtl 70s linear infinite;
    white-space: nowrap;
}

.ticker-text {
    font-size: 0.76rem;
    font-weight: 500;
    color: #92400e;
    padding-right: 80px;
    display: inline-block;
}

@keyframes ticker-rtl {
    0%   { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

.disclaimer-ticker:hover .ticker-track {
    animation-play-state: paused;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#searchInput {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
    width: 0;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#searchInput.active {
    width: 140px;
    opacity: 1;
}

#searchInput:focus { background: #fff; border-color: var(--primary-color); }

.search-icon {
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.container {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 160px);
}

/* Video Grid Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Grid & Card Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
    padding: 10px 0;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.thumbnail-container {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge Tags */
.hd-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 800;
    border: 0.5px solid rgba(255,255,255,0.3);
    z-index: 5;
}

.trending-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #ff4757;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.thumb-views {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}

.thumb-views svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.video-info {
    padding: 8px 4px 12px 4px;
}

.video-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.video-meta {
    display: none; /* Moved to thumbnail */
}

/* Pagination */
.load-more-container {
    margin: 2rem 0;
    text-align: center;
}

.load-more-btn {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f8fafc;
}

/* Play View Styles */
#playView { padding-top: 0.5rem; padding-bottom: 100px; }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.back-btn:hover { color: #3b82f6; }

.player-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .player-container { grid-template-columns: 1fr; gap: 1rem; }
}

.video-preview-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
}

.play-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Fake Player UI - Reference Match */
.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 10px 15px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.player-left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-container {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    position: relative;
    display: flex;
    align-items: center;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
}

.progress-dot {
    position: absolute;
    left: 0%;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
}

.player-right-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-btn-small svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    opacity: 0.8;
}

.player-time {
    color: #fff;
    font-size: 0.7rem;
    font-family: monospace;
}

/* Funnel Overlays - Top Layer */
.play-overlay-large {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25); /* Slightly darker for better contrast */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    z-index: 20;
}

/* Centered Circle Loader UI - Subtle & Professional */
.loading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loader-circle-container {
    position: relative;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.buffering-loader {
    width: 100%;
    height: 100%;
    border: 2.5px solid rgba(255, 255, 255, 0.1);
    border-top: 2.5px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loading-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.8rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Premium App-Style CTA Button - Compact Edition */
.terabox-app-btn {
    background: #007aff; 
    color: #fff;
    padding: 4px 4px 4px 15px; /* Compact padding */
    border-radius: 10px; /* Sharper corners for professionalism */
    font-weight: 700;
    font-size: 0.88rem; /* Scaled down font */
    display: flex;
    align-items: center;
    gap: 10px; /* Tighter gap */
    text-decoration: none;
    box-shadow: 0px 0px 40px 3px rgb(13 13 14 / 90%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.05);
    white-space: nowrap;
}

.terabox-app-btn:active {
    transform: scale(0.97);
}

.terabox-icon-badge {
    background: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 30px; /* Reduced badge height */
    min-width: 70px;
}

.terabox-icon-badge img {
    height: 16px; /* Scaled down logo */
    width: auto;
    object-fit: contain;
}

.play-title { 
    font-size: 1.05rem; 
    font-weight: 700; 
    color: #0f172a; 
    margin-top: 1.2rem; 
    margin-bottom: 4px; 
    line-height: 1.4; 
    letter-spacing: -0.01em;
}

.play-views-below { 
    font-size: 0.82rem; 
    color: #64748b; 
    margin-bottom: 1.2rem; 
}

.guide-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.guide-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.terabox-logo-small { height: 24px; }
.guide-header h3 { font-size: 0.9rem; font-weight: 700; color: #1e293b; }

.guide-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.2rem;
}

.guide-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid #f1f5f9; }
.terabox-logo-small { height: 28px; width: auto; object-fit: contain; }
.guide-header h3 { font-size: 0.95rem; font-weight: 600; color: #1e293b; }

.guide-steps-simple p { font-size: 0.85rem; color: #64748b; margin-bottom: 0.5rem; display: flex; align-items: center; }
.guide-steps-simple p::before { content: "✓"; color: #3b82f6; margin-right: 8px; font-weight: 700; }

/* Sticky Footer */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1rem 1.2rem;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.08);
    z-index: 100;
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sticky-benefit { display: flex; gap: 8px; align-items: center; color: #2563eb; }
.sticky-benefit svg { width: 18px; height: 18px; }
.sticky-benefit span { font-size: 0.85rem; font-weight: 600; }

.sticky-benefits-list { display: flex; flex-direction: column; gap: 4px; }
.sticky-benefits-list span { font-size: 0.75rem; color: #64748b; display: flex; align-items: center; }
.sticky-benefits-list span::before { content: "•"; margin-right: 6px; color: #cbd5e1; }

.cta-button-sticky-large {
    background: #2563eb;
    color: #fff;
    padding: 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.footer {
    padding: 1.2rem 1.5rem 5rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    margin-top: 0.1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.footer-logo-img {
    height: 22px;
    width: 22px;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.01em;
}

.footer p { font-size: 0.8rem; color: #64748b; }

/* Legal Links in footer */
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 8px 0 6px;
}

.footer-legal-links a {
    font-size: 0.75rem;
    color: #3b82f6;
    text-decoration: none;
    padding: 2px 10px;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap;
    font-weight: 500;
    transition: color 0.15s;
}

.footer-legal-links a:last-child {
    border-right: none;
}

.footer-legal-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Ad Slots */
.ad-slot { margin: 1rem auto; width: 100%; display: flex; justify-content: center; overflow: hidden; }
.ad-320-50 { min-height: 50px; background: #f8fafc; border-radius: 8px; }
.ad-native { min-height: 250px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }

/* Sticky Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
    z-index: 1000;
    border-top: 1px solid #f1f5f9;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.2s;
}

.bottom-nav .nav-item svg {
    width: 22px;
    height: 22px;
    stroke: #64748b;
}

.bottom-nav .nav-item .nav-icon-wrapper {
    height: 22px;
    display: flex;
    align-items: center;
}

.bottom-nav .nav-item img {
    height: 35px;
    width: auto;
}

.bottom-nav .nav-item:active {
    color: #007aff;
    transform: scale(0.95);
}

.bottom-nav .nav-item:active svg {
    stroke: #007aff;
}

/* Adjustments for home page footer to avoid overlap */
#galleryView { padding-bottom: 1px; }

/* ── App Install Bottom Sheet ─────────────────────────────────── */
.abs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 2999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.abs-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.app-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 0 1.5rem 2.5rem;
    z-index: 3000;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-bottom-sheet.show {
    transform: translateY(0);
}

.abs-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 14px auto 20px;
}

.abs-app-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.abs-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.abs-app-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.abs-app-tagline {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

.abs-rating {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 4px;
}

.abs-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.abs-install-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #6d28d9 100%);
    color: #fff;
    padding: 0.95rem 1.5rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    width: 100%;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: -0.01em;
}

.abs-install-btn:active {
    opacity: 0.9;
    transform: scale(0.98);
}

.abs-dismiss {
    display: block;
    width: 100%;
    margin-top: 0.85rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    padding: 0.4rem;
}


/* ── Suggested Videos ─────────────────────────────────────────── */
.suggested-section {
    margin-top: 2rem;
    margin-bottom: 120px;
}

.suggested-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.suggested-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

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

.suggested-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.suggested-card:active {
    transform: scale(0.97);
}

.suggested-thumb {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #000;
}

.suggested-thumb .hd-tag {
    position: absolute;
    top: 5px;
    right: 5px;
}

.suggested-info {
    padding: 6px 8px 10px;
}

.suggested-title-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 3px;
}

.suggested-views {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ── Plyr theme override ──────────────────────────────────────── */
.plyr--video .plyr__control--overlaid,
.plyr__control--overlaid {
    background: #3b82f6;
}

.plyr--full-ui input[type=range] {
    color: #3b82f6;
}

.plyr--video .plyr__controls {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

/* Disable seek bar for non-app users */
#videoWrapper.no-seek .plyr__progress,
#videoWrapper.no-seek .plyr__progress input[type="range"],
#videoWrapper.no-seek .plyr__tooltip {
    pointer-events: none !important;
    cursor: default !important;
}

/* YouTube title-click guard — blocks iframe top bar from linking to YouTube */
.yt-title-guard {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 13%;
    z-index: 10;
    cursor: pointer;
    /* transparent — invisible to user */
    background: transparent;
}

/* Make Plyr fill the wrapper */
#videoWrapper .plyr {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

#videoWrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* ── Play Title Row (title + report btn) ──────────────────────── */
.play-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-top: 1.2rem;
    margin-bottom: 4px;
}

.play-title-row .play-title {
    margin-top: 0;
    margin-bottom: 0;
    flex: 1;
}

.report-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 10px;
    color: #ef4444;
    font-size: 0.6rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.report-icon-btn svg {
    stroke: #ef4444;
}

.report-icon-btn:active {
    background: #fef2f2;
    border-color: #ef4444;
    transform: scale(0.95);
}

/* ── Report Sheet Overlay ─────────────────────────────────────── */
.report-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 3500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.report-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* ── Report Bottom Sheet ──────────────────────────────────────── */
.report-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f5f5f5;
    border-radius: 20px 20px 0 0;
    z-index: 3600;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
}

.report-sheet.show {
    transform: translateY(0);
}

.report-handle {
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 12px auto 8px;
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px 16px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 20px 20px 0 0;
}

.report-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

.report-close-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.15s;
}

.report-close-btn:active {
    background: #e5e7eb;
}

/* ── Report Section Cards ─────────────────────────────────────── */
.report-section {
    background: #fff;
    margin: 10px 0;
    padding: 16px 18px 18px;
    position: relative;
}

.report-section-dot {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    margin-bottom: 10px;
}

.report-section-text {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.55;
    margin-bottom: 10px;
}

.report-guidelines-link {
    display: inline-block;
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 16px;
}

.report-guidelines-link:hover {
    text-decoration: underline;
}

.report-piracy-btn {
    display: block;
    width: 100%;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.report-piracy-btn:active {
    opacity: 0.88;
    transform: scale(0.98);
}

/* ── Report Radio Reasons ─────────────────────────────────────── */
.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 18px;
}

.report-reason-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
}

.report-reason-item:last-child {
    border-bottom: none;
}

.report-reason-item input[type="radio"] {
    display: none;
}

.report-radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s;
    position: relative;
}

.report-reason-item input[type="radio"]:checked + .report-radio-custom {
    border-color: #3b82f6;
}

.report-reason-item input[type="radio"]:checked + .report-radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
}

.report-reason-label {
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 400;
    line-height: 1.4;
}

.report-submit-btn {
    display: block;
    width: 100%;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.report-submit-btn:active {
    opacity: 0.88;
    transform: scale(0.98);
}

/* ── Report Toast (removed – replaced by success screen) ──────── */

/* ── Report Success Screen ───────────────────────────────────── */
.report-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 32px 48px;
    background: #fff;
    min-height: 340px;
    animation: rs-fadein 0.35s ease;
}

@keyframes rs-fadein {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.report-success-icon {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 28px;
}

.rs-triangle {
    width: 80px;
    height: 70px;
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.35));
}

.rs-check {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: #3b82f6;
    border-radius: 50%;
    border: 2.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.rs-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    text-align: center;
}

.rs-subtitle {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
    text-align: center;
    max-width: 280px;
}


