:root {
    --bg-color: #0c0d12;
    --bg-primary: #12131c;
    --bg-secondary: #161725;
    --bg-tertiary: #1a1b2e;
    --accent-color: #e68a18;
    --accent-gradient: linear-gradient(135deg, #e68a18, #d35400);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --sidebar-edge: rgba(255, 255, 255, 0.075);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0d0d0f;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto; /* Enable global scroll */
    line-height: 1.5;
}

/* Modal Video Loader */
.modal-video-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3;
    gap: 15px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}

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

.modal-video-loader span {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

h1, h2, h3, .logo span {
    font-family: 'Outfit', sans-serif;
}

/* Utils */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.hidden { display: none !important; }

/* PWA — instalar como app */
.pwa-install-banner {
    position: fixed;
    left: max(10px, env(safe-area-inset-left, 0));
    right: max(10px, env(safe-area-inset-right, 0));
    bottom: max(10px, env(safe-area-inset-bottom, 0));
    z-index: 9000;
    padding: 0;
    animation: pwa-slide-up 0.35s ease;
}

@keyframes pwa-slide-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.pwa-install-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(18, 19, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pwa-install-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pwa-install-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-install-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.pwa-install-sub {
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
    white-space: nowrap;
    border-radius: 8px !important;
}

.pwa-install-dismiss {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.pwa-ios-sheet {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top, 0)) max(12px, env(safe-area-inset-right, 0)) max(12px, env(safe-area-inset-bottom, 0)) max(12px, env(safe-area-inset-left, 0));
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.pwa-ios-sheet.hidden {
    display: none !important;
}

.pwa-ios-card {
    width: min(100%, 380px);
    padding: 20px 18px 18px;
    border-radius: 16px 16px 14px 14px;
    background: #1a1b26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.pwa-ios-card h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

.pwa-ios-steps {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    text-align: left;
}

.pwa-ios-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
}

.pwa-ios-steps li span.num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-gradient, linear-gradient(135deg, #e67e22, #d35400));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-ios-close-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

html.thoflix-standalone body.thoflix-app {
    padding-top: env(safe-area-inset-top, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    min-height: 100dvh;
    min-height: -webkit-fill-available;
}

html.thoflix-standalone.thoflix-mobile #main-app.screen.active,
html.thoflix-pwa.thoflix-mobile #main-app.screen.active {
    min-height: 100dvh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
}

html.thoflix-standalone.thoflix-mobile #login-screen,
html.thoflix-standalone.thoflix-mobile #loading-screen,
html.thoflix-pwa.thoflix-mobile #login-screen,
html.thoflix-pwa.thoflix-mobile #loading-screen {
    min-height: 100dvh !important;
    height: 100dvh !important;
}

html.thoflix-standalone .pwa-install-banner,
html.thoflix-standalone #pwa-install-guide,
html.thoflix-pwa .pwa-install-banner,
html.thoflix-pwa #pwa-install-guide {
    display: none !important;
}

/* Evita flash do login ao atualizar com sessão guardada */
html.thoflix-session-pending #login-screen,
html.thoflix-session-pending #login-screen.active {
    display: none !important;
    visibility: hidden !important;
}

html.thoflix-session-pending #loading-screen {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483646 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0c0d12 !important;
}

/* Screens Management */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    display: none;
    z-index: 5;
    background: var(--bg-color);
}

.screen.active {
    display: block;
}

/* Login Screen */
#login-screen {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2147483647 !important; /* Maximum possible z-index */
    background: #0c0d12;
    pointer-events: all !important;
    overflow: hidden;
}

#login-screen.active {
    display: flex !important;
}

.login-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #0c0d12;
    background-image: url('../img/login-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.08);
    filter: brightness(0.55) saturate(1.05);
}

.login-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(12, 13, 18, 0.35) 0%, rgba(12, 13, 18, 0.88) 100%),
        linear-gradient(to bottom, rgba(12, 13, 18, 0.5) 0%, rgba(12, 13, 18, 0.92) 100%);
}

.login-card {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 360px;
    padding: 28px 26px 24px;
    text-align: center;
    animation: slideUp 0.6s ease-out;
    background: rgba(12, 13, 18, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo img {
    height: 70px;
}

.login-card h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.login-card p,
.login-tagline {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 13px;
    opacity: 0.8;
}

.login-layout {
    width: 100%;
}

.login-brand {
    text-align: center;
}

.login-main {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.08);
}

.btn-primary {
    width: auto;
    min-width: 200px;
    padding: 14px 28px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.error-msg {
    color: #e74c3c;
    margin-top: 20px;
    font-size: 14px;
    min-height: 20px;
}

.login-host-banner {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.35);
    color: #f8e6c8;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

/* Sidebar */
.sidebar {
    width: 110px;
    background: #12131c;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    border-right: 1px solid var(--sidebar-edge);
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.45);
}

.sidebar-logo {
    padding: 20px 10px;
    text-align: center;
}

.sidebar-logo img {
    width: 60px;
    filter: drop-shadow(0 0 10px rgba(243, 156, 18, 0.3));
}

.sidebar nav {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}

.sidebar nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
}

.sidebar nav li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    gap: 4px;
    border-left: 3px solid transparent;
}

.sidebar nav li i {
    font-size: 20px;
    color: #a3a38a; /* Muted Golden */
}

.sidebar nav li span {
    font-size: 10px;
    font-weight: 500;
    color: #a3a38a;
}

.sidebar nav li:hover, .sidebar nav li.active {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar nav li.active {
    border-left-color: var(--accent-color);
}

.sidebar nav li.active i, .sidebar nav li.active span {
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
    padding: 12px 10px;
}

.btn-logout-custom {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    cursor: pointer;
}

/* Content Area — largura = viewport menos sidebar (evita vazar à direita) */
.content-area {
    flex: 1;
    min-height: 100vh;
    margin-left: 110px !important;
    width: calc(100% - 110px) !important;
    max-width: calc(100vw - 110px) !important;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: hidden;
    padding: 0 32px 0 36px !important;
    margin-top: 0 !important;
    position: relative;
    background: #12131c !important; /* Fusion color */
    display: block !important;
    border: none !important;
}

.top-bar {
    padding: 25px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed; /* Keep it fixed at the top */
    top: 0;
    right: 0;
    width: auto;
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    pointer-events: none; /* Allow clicks through to content behind, but children must override */
}

.user-info {
    pointer-events: auto; /* Re-enable clicks for the user pill */
}

.search-bar {
    width: 400px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    margin-left: 10px;
    outline: none;
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#user-display-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.5px;
}

.user-display-server {
    font-size: 12px;
    font-weight: 500;
    color: #f39c12;
    letter-spacing: 0.02em;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-display-server::before {
    content: '·';
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #2ecc71;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71;
}

/* Hero Section */
.hero-section {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth fade transition */
    display: flex;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding: 60px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to right, #0a0a0b 20%, transparent);
}

.hero-content .badge {
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-content .meta {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.hero-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
}

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

/* Streaming hub (home) — categorias reais da lista */
.streaming-hub {
    margin: 48px 30px 12px 30px;
    padding: 0;
    box-sizing: border-box;
}

.streaming-hub-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.streaming-hub-header i {
    font-size: 26px;
    color: #5dade2;
    filter: drop-shadow(0 0 8px rgba(93, 173, 226, 0.35));
    flex-shrink: 0;
}

.streaming-hub-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding-top: 2px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.streaming-hub-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
}

.streaming-pill {
    padding: 14px 26px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(36, 38, 50, 0.98);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.streaming-pill--netflix { color: #e50914; }
.streaming-pill--prime { color: #00a8e1; }
.streaming-pill--apple { color: #f5f5f7; }
.streaming-pill--disney { color: #2a6bff; }
.streaming-pill--hbo { color: #c9a0ff; }
.streaming-pill--paramount { color: #6bc9f7; }
.streaming-pill--star { color: #7dd3fc; }
.streaming-pill--globo { color: #00a859; }
.streaming-pill--discovery { color: #1479ff; }
.streaming-pill--crunchy { color: #f47521; }
.streaming-pill--telecine { color: #e74c3c; }
.streaming-pill--universal { color: #c9f0ff; }
.streaming-pill--default { color: rgba(255, 255, 255, 0.95); }

.streaming-pill:hover,
.streaming-pill:focus-visible {
    border-color: rgba(243, 156, 18, 0.9);
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.35), 0 8px 28px rgba(0, 0, 0, 0.45);
    outline: none;
    transform: translateY(-2px);
}

.streaming-hub-empty {
    color: var(--text-secondary);
    font-size: 15px;
    padding: 0.75rem 0 0;
    margin: 0;
}

/* Continue Assistindo — alinhado ao hub, mais ar na vertical */
.home-continue-section {
    margin: 0 30px;
    padding-top: 40px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    box-sizing: border-box;
}

.home-continue-section .section-title.section-title--continue {
    margin: 0 0 24px 0;
    padding-left: 0;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: #fff;
}

.home-continue-section .horizontal-scroller .scroll-content.continue-watching-list {
    margin-bottom: 0;
}

/* Legacy brands (mantido se usado noutro sítio) */
.streaming-brands {
    margin-bottom: 50px;
}

.streaming-brands h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.brand-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.brand-item {
    padding: 15px 30px;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-weight: 600;
}

.brand-item:hover {
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.1);
}

/* Dynamic Views */
#view-container {
    padding: 20px 40px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Content Grids */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    padding-bottom: 50px;
}

.item-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.item-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: #252529;
    position: relative;
    overflow: hidden;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 12px;
}

.card-info h3,
.card-info h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Category Grid */
.category-card {
    background: linear-gradient(145deg, #1e1e22, #141416);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background: linear-gradient(145deg, #252529, #1a1a1d);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 24px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.category-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: 25px;
    transition: var(--transition);
    width: fit-content;
}

.back-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-color);
}

/* Category List Layout */
.category-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}

.category-list {
    width: 250px;
    min-width: 250px;
    background: #15150e !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-radius: 0 !important;
    z-index: 5;
}

.category-header-label { 
    position: sticky !important; 
    top: 0 !important; 
    background-color: #15150e !important; 
    z-index: 99 !important; 
    padding: 15px 15px 15px 15px !important; /* Reduced top padding */
    font-size: 11px !important; 
    font-weight: 800 !important; 
    color: var(--accent-color) !important; 
    letter-spacing: 1px !important;
    text-transform: uppercase;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.category-list::-webkit-scrollbar { width: 4px; }
.category-list::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

.category-item {
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 2px;
}

.category-item:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
}

.category-item.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}

.category-item .item-count {
    font-size: 11px;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    opacity: 0.8;
}

.category-item.active .item-count {
    background: rgba(0,0,0,0.2);
}

#view-container {
    flex: 1;
    padding: 0;
}

.category-content {
    flex: 1;
    min-height: 0;
    padding: 30px;
    position: relative;
}

.category-loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Ajustado para centralização perfeita */
    width: 100%;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    grid-column: 1 / -1;
}

.category-loading-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(243, 156, 18, 0.15);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.category-empty-msg i {
    font-size: 36px;
    color: var(--accent-color);
    opacity: 0.45;
}

#items-grid.content-grid {
    display: grid;
}

/* Player Overlay */
#player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.player-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 101;
    transition: opacity 0.5s;
}

/* Custom Player HUD Toggle */
#player-container.hud-hidden .player-header,
#player-container.hud-hidden #live-controls-overlay,
#player-container.hud-hidden #vod-controls-overlay {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Mini player (PiP): visível e clicável mesmo com HUD oculto */
#player-container.hud-hidden #player-pip-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1020;
}

#live-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 101;
    transition: opacity 0.5s;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espaça para os cantos */
    box-sizing: border-box; /* Impede transbordo da tela */
}

#live-play-pause-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
}

#live-play-pause-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

#live-play-pause-btn:active {
    transform: scale(0.95);
}

.player-live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ff3b30;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #ff3b30;
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

#close-player {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playing-info h3 { margin: 0; font-size: 20px; }
.playing-info p { margin: 0; color: var(--text-secondary); font-size: 14px; }

#main-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--bg-color) !important;
}

/* Loader */
#loading-screen.active {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: var(--bg-color) !important;
    z-index: 99999 !important;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 850px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: zoomIn 0.3s ease-out;
    border: none !important;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    position: relative;
    background: #0f1016;
    overflow: hidden;
}

.modal-backdrop-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.35);
    transform: scale(1.15);
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

.modal-preview img#modal-img, .modal-preview video#modal-preview-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.live-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #e67e22;
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    z-index: 3;
}

.modal-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 3;
}

.modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-body {
    padding: 30px;
}

.modal-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.modal-header-info h2 {
    font-size: 28px;
    font-weight: 700;
}

.quality-badge {
    background: rgba(243, 156, 18, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 14px;
}

.epg-info {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.epg-now, .epg-next {
    flex: 1;
    padding: 15px 20px;
    border-radius: var(--radius-md);
}

.epg-now {
    border-left: 4px solid #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

.epg-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 5px;
}

.epg-now p, .epg-next p {
    font-size: 14px;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-play {
    flex: 1;
    padding: 18px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.4);
}

.btn-close {
    width: 200px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close:hover {
    background: rgba(255,255,255,0.1);
}

/* VOD Details Screen */
#vod-details {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    display: none;
    overflow-y: auto;
}

#vod-details.active { display: block; }

.vod-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c0d12;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    transition: background-image 0.45s ease-in-out;
}

.vod-backdrop::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to right, rgba(12, 13, 18, 0.94) 0%, rgba(12, 13, 18, 0.82) 38%, rgba(12, 13, 18, 0.45) 62%, rgba(12, 13, 18, 0.25) 100%),
        linear-gradient(to top, rgba(12, 13, 18, 0.92) 0%, rgba(12, 13, 18, 0.35) 45%, transparent 100%);
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.vod-details-container {
    position: relative;
    width: 100%;
    margin: 0 !important;
    display: block;
    padding: 60px 40px !important;
    animation: fadeIn 0.5s ease;
    z-index: 2;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.vod-details-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    padding: 0;
}

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

.vod-left {
    flex: 0 0 300px;
    max-width: 300px;
}

.vod-left img {
    width: 100%;
    max-height: 480px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.vod-right {
    flex: 1;
    min-width: 0;
}

.back-btn-orange {
    background: var(--accent-color) !important;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 25px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.back-btn-orange:hover { transform: scale(1.05); background: #e67e22 !important; }

.vod-right h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #fff;
}

.vod-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i { color: var(--accent-color); }

.vod-genre {
    color: #c4b5fd;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.45;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.vod-plot {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
    font-size: 17px;
    margin-bottom: 28px;
    max-width: 52rem;
}

.vod-credits {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vod-credits p { font-size: 14px; color: var(--text-secondary); }
.vod-credits strong { color: var(--text-primary); margin-right: 5px; }

.vod-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 8px;
    max-width: 500px;
    width: 100%;
}

.btn-play-large {
    width: 100%;
    padding: 18px;
    background: #d35400 !important; /* Deeper orange */
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.4);
}

.btn-play-large:hover {
    background: #e67e22 !important;
    transform: translateY(-2px);
}

.btn-fav-large {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.btn-fav-large:hover { background: rgba(255,255,255,0.1); }
.btn-fav-large.active { color: #e74c3c; border-color: #e74c3c; }

.btn-fav-large:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

.btn-fav-large.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.vod-cast-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.vod-cast-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cast-list {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.cast-list::-webkit-scrollbar { height: 4px; }

.cast-item {
    flex: 0 0 90px;
    text-align: center;
}

.cast-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--glass-border);
    background: #1a1a1d;
    transition: var(--transition);
}

.cast-item:hover .cast-img {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.cast-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive VOD + sidebar compact */
@media (max-width: 1024px) {
    .vod-details-content { flex-direction: column; align-items: center; text-align: center; }
    .vod-left { flex: 0 0 auto; width: 250px; position: static; }
    .vod-meta { justify-content: center; flex-wrap: wrap; }
    .vod-actions { margin: 0 auto; }
    .vod-right { align-items: center !important; }
    .sidebar { width: 80px; padding: 20px 10px; }
    .sidebar-logo span, .sidebar nav li span, .sidebar-footer span { display: none; }
    .sidebar nav li { justify-content: center; padding: 15px 0; }
    .search-bar { width: 250px; }
    .content-area {
        margin-left: 80px !important;
        width: calc(100% - 80px) !important;
        max-width: calc(100vw - 80px) !important;
        padding: 0 24px 0 28px !important;
    }
}

/* Series Details Styling */
.series-seasons-container {
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--glass-border);
}

.series-seasons-container.hidden {
    display: none;
}

.seasons-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.season-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.season-tab.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    font-weight: 600;
}

.episodes-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding: 6px 4px 10px 0;
    box-sizing: border-box;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    flex: 1 1 220px;
    min-width: 180px;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    box-sizing: border-box;
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.episode-num {
    background: var(--accent-gradient);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

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

.episode-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Badge Styles */
.live-badge { position: absolute; top: 10px; left: 10px; background: #e74c3c; color: white; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 4px; z-index: 2; }
.rating-badge { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); color: #f1c40f; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px; z-index: 2; display: flex; align-items: center; gap: 5px; border: 1px solid rgba(255, 255, 255, 0.1); }
.placeholder { opacity: 0.6; pointer-events: none; }

/* Continue Watching Styles */
.continue-watching-list { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; margin-bottom: 40px; scrollbar-width: thin; scrollbar-color: var(--accent-color) transparent; }
.continue-watching-list::-webkit-scrollbar { height: 6px; }
.continue-watching-list::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; }
.horizontal-scroller .scroll-content.continue-watching-list {
    margin-bottom: 0;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.horizontal-scroller .scroll-content.continue-watching-list::-webkit-scrollbar { display: none; }
.continue-card { flex: 0 0 240px; display: flex; align-items: center; gap: 15px; padding: 10px; border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); border: 1px solid var(--glass-border); }
.continue-card:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-5px); }
.continue-poster { position: relative; width: 80px; height: 110px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.continue-poster img { width: 100%; height: 100%; object-fit: cover; }
.play-mini { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.continue-card:hover .play-mini { opacity: 1; }
.continue-info { overflow: hidden; }
.continue-info h4 { font-size: 14px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.continue-info span { font-size: 11px; color: var(--accent-color); font-weight: 600; text-transform: uppercase; }

/* Settings Page Styles */
.settings-page { max-width: 900px; margin: 0 auto; padding: 20px; }
.settings-header { display: flex; align-items: center; gap: 15px; margin-bottom: 40px; }
.settings-header i { font-size: 28px; color: var(--text-primary); }
.settings-header h2 { font-size: 28px; font-weight: 700; color: var(--text-primary); }
.settings-section { margin-bottom: 35px; }
.section-label { font-size: 14px; font-weight: 700; color: var(--accent-color); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.settings-group { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05); }
.settings-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 25px; background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition); }
.settings-row:last-child { border-bottom: none; }
.settings-row.active { border: 1px solid var(--accent-color); background: rgba(211, 132, 28, 0.05); }
.row-label { font-size: 16px; color: rgba(255, 255, 255, 0.9); font-weight: 500; }
.row-value { font-size: 14px; font-weight: 700; color: #fff; }
.row-info { display: flex; flex-direction: column; gap: 4px; }
.row-desc { font-size: 12px; color: var(--text-secondary); }
.parental-row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.parental-status.is-on { color: #2ecc71; }
.settings-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    transition: 0.25s;
}
.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.25s;
}
.settings-toggle input:checked + .toggle-slider {
    background: var(--accent-color, #e67e22);
}
.settings-toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
}
.btn-parental-secondary {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.btn-parental-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.parental-settings-row.active { border-color: rgba(46, 204, 113, 0.45); background: rgba(46, 204, 113, 0.06); }

/* Modal PIN — Controle dos Pais */
body.parental-modal-open { overflow: hidden; }
.parental-pin-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.parental-pin-modal.hidden { display: none !important; }
.parental-pin-card {
    width: min(100%, 380px);
    max-height: min(96dvh, 640px);
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1b26;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.parental-pin-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.parental-pin-header i { font-size: 22px; color: var(--accent-color, #e67e22); }
.parental-pin-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color, #e67e22);
}
.parental-pin-body { padding: 16px 20px 12px; }
.parental-pin-label {
    margin: 0 0 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}
.pin-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 8px;
}
.pin-box {
    width: 48px;
    height: 52px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    transition: border-color 0.2s, background 0.2s;
}
.pin-box.filled { border-color: var(--accent-color, #e67e22); background: rgba(230, 126, 34, 0.12); }
.pin-box.active { border-color: var(--accent-color, #e67e22); box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.35); }
#parental-pin-row-confirm { margin-top: 14px; }
#parental-pin-row-confirm.hidden { display: none !important; }
.parental-pin-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}
.parental-pin-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
}
.parental-pin-error {
    margin: 10px 0 0;
    font-size: 13px;
    color: #e74c3c;
    text-align: center;
}
.parental-pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}
.pin-key {
    min-height: 48px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.pin-key:hover, .pin-key:active { background: rgba(255, 255, 255, 0.16); }
.pin-key--empty { visibility: hidden; pointer-events: none; }
.parental-pin-actions {
    display: flex;
    gap: 10px;
    padding: 12px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.parental-pin-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.parental-pin-btn--primary {
    background: var(--accent-color, #e67e22);
    border-color: transparent;
    color: #fff;
}
.parental-pin-btn--primary:hover { filter: brightness(1.08); }

.settings-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.action-btn { display: flex; align-items: center; gap: 15px; padding: 18px 25px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-primary); font-size: 16px; font-weight: 600; cursor: pointer; transition: var(--transition); text-align: left; background: rgba(255, 255, 255, 0.05); }
.action-btn:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(5px); }
.action-btn.logout { background: rgba(231, 76, 60, 0.1); border-color: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.action-btn.logout:hover { background: rgba(231, 76, 60, 0.2); }

/* Sidebar Icon Only Style */
.sidebar-icon-only { justify-content: center !important; margin-top: 20px !important; opacity: 0.6; transition: var(--transition); }
.sidebar-icon-only:hover { opacity: 1; transform: rotate(45deg); color: var(--accent-color); }
.sidebar-icon-only i { font-size: 20px !important; margin-right: 0 !important; }

/* Home Horizontal Sections */
.home-section-container {
    margin-bottom: 40px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}
.section-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.section-header i { font-size: 24px; }
.section-header h2 { font-size: 22px; font-weight: 700; color: #fff; }
.horizontal-scroller,
.horizontal-scroller .scroll-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.horizontal-scroller {
    position: relative;
    padding: 0;
}

.scroll-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}
.scroll-content::-webkit-scrollbar { display: none; }
.home-card { flex: 0 0 180px; cursor: pointer; transition: var(--transition); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.03); }
.home-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.home-card-poster { height: 260px; overflow: hidden; }
.home-card-poster img { width: 100%; height: 100%; object-fit: cover; }
.home-card-info { padding: 12px; }
.home-card-info h4 { font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.home-card-info span { font-size: 12px; color: var(--text-secondary); }
.scroll-btn {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    top: auto;
    left: auto;
    right: auto;
    z-index: 20;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    opacity: 1;
    transform: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}
.scroll-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.06);
}
.scroll-btn.prev,
.scroll-btn.next { left: auto; right: auto; }
.scroll-progress-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 15px; position: relative; overflow: hidden; }
.progress-fill { width: 30%; height: 100%; background: var(--accent-color); border-radius: 2px; }
.home-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; color: var(--text-secondary); font-size: 15px; }
.home-empty-state i { font-size: 32px; color: var(--accent-color); opacity: 0.5; animation: spin 2s linear infinite; }


/* Search Page Styles */
.search-page-container { max-width: 1400px; margin: 0 auto; padding: 60px 20px; }
.search-hero { text-align: center; margin-bottom: 50px; }
.search-hero i { font-size: 50px; color: var(--accent-color); opacity: 0.3; margin-bottom: 20px; }
.search-hero h2 { font-size: 32px; margin-bottom: 30px; color: #fff; }
.large-search-input { width: 100%; max-width: 600px; margin: 0 auto; padding: 5px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); }
.large-search-input input { width: 100%; background: transparent; border: none; padding: 15px 30px; font-size: 18px; color: #fff; outline: none; }
.search-results-section { width: 100%; max-width: 1400px; margin: 0 auto; }
.search-results-meta { margin-bottom: 4px; }
.search-results-meta.hidden { display: none !important; }
.search-results-count { color: var(--text-secondary); font-size: 15px; line-height: 1.5; margin-bottom: 20px; text-align: center; }
.search-results-count strong { color: var(--text-primary); font-weight: 700; }
.search-query-label { color: var(--accent-color); font-weight: 600; }
.search-placeholder { grid-column: 1/-1; text-align: center; padding: 4rem; color: var(--text-secondary); font-size: 16px; }

/* Extra padding for scrollable details */
/* End of VOD details */

/* backdrop definido acima — sem blur pesado para mostrar capa TMDB */

/* Hero Slider Indicators */
.hero-indicators { position: absolute; bottom: 30px; left: 60px; display: flex; gap: 10px; z-index: 10; }
.indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.2); cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.indicator.active { background: var(--accent-color); width: 30px; border-radius: 10px; }

.hero-content { position: relative; z-index: 5; background: linear-gradient(to right, rgba(21, 21, 14, 0.9) 30%, transparent 70%); width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 60px; }
.hero-img { position: absolute; top: 0; right: 0; width: 65%; height: 100%; z-index: 1; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(to left, black 70%, transparent); }

/* --- MOBILE RESPONSIVENESS (Max Width: 768px) --- */
@media (max-width: 768px) {
    body { overflow-y: auto; }

    .sidebar {
        width: 100%;
        height: 70px;
        flex-direction: row;
        top: auto;
        bottom: 0;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.05);
        padding: 0;
        justify-content: space-around;
        background: rgba(26, 26, 18, 0.95);
        backdrop-filter: blur(10px);
    }

    .sidebar-logo { display: none; }

    .sidebar nav { width: 100%; }
    .sidebar nav ul { display: flex; justify-content: space-around; width: 100%; }
    .sidebar nav li {
        padding: 10px;
        border-left: none;
        border-bottom: 3px solid transparent;
        gap: 4px;
    }
    .sidebar nav li.active { border-left-color: transparent; border-bottom-color: var(--accent-color); }
    .sidebar nav li i { font-size: 20px; }
    .sidebar nav li span { font-size: 9px; }

    .sidebar-footer { display: none; }

    .content-area {
        margin-left: 0;
        padding: 0 0 80px 0 !important;
        height: auto;
        min-height: 100vh;
    }
    #view-container { padding: 15px; }

    .top-bar { padding: 15px; position: absolute; }
    .user-info { padding: 8px 15px; }
    #user-display-name { font-size: 12px; }
    .user-display-server { font-size: 11px; max-width: 120px; }

    .hero-section { height: 350px; margin-bottom: 20px; }
    .hero-content { padding: 30px 20px; background: linear-gradient(to top, rgba(12, 13, 18, 1) 40%, transparent); justify-content: flex-end; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { display: none; }
    .hero-indicators { left: 20px; bottom: 20px; }
    .hero-btns { gap: 10px; }
    .btn-primary, .btn-secondary { min-width: 120px; padding: 10px 15px; font-size: 12px; }
    .hero-img { width: 100%; }
    .hero-img img { mask-image: linear-gradient(to top, black 60%, transparent); }

    .streaming-hub { margin: 40px 15px 10px 15px !important; }
    .streaming-hub-header { gap: 14px !important; margin-bottom: 20px !important; }
    .streaming-hub-header h3 { font-size: 18px !important; padding-top: 1px !important; }
    .streaming-pill { padding: 11px 16px !important; font-size: 13px !important; }

    .home-continue-section {
        margin-left: 15px !important;
        margin-right: 15px !important;
        padding-top: 32px !important;
    }
    .home-continue-section .section-title.section-title--continue {
        padding-left: 0 !important;
        font-size: 20px !important;
        margin-bottom: 18px !important;
    }

    .content-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
    .item-card h4 { font-size: 11px; }

    .category-container { flex-direction: column; height: auto; }
    .category-list { width: 100%; height: 60px; flex-direction: row; overflow-x: auto; padding-right: 0; }
    .category-item { white-space: nowrap; padding: 10px 15px; }

    /* VOD Details Mobile */
    .vod-details-container { padding: 20px; }
    .vod-details-content { flex-direction: column; align-items: center; text-align: center; }
    .vod-left { width: 180px; margin-bottom: 20px; }
    .vod-right { padding: 0; }
    .vod-meta { justify-content: center; }
    .vod-actions { justify-content: center; flex-wrap: wrap; }
    .episodes-list {
        gap: 10px;
        justify-content: center;
        padding: 4px 0 8px 0;
    }
    .episode-item {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }
    
    /* Settings Mobile */
    .settings-page { padding: 15px; }
    .settings-row { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* Orientation and Back Button Styles */
#orientation-warning { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #12131c; z-index: 9999; display: none; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.warning-content i { font-size: 60px; color: var(--accent-color); margin-bottom: 20px; animation: rotatePhone 2s infinite; }
.warning-content h2 { font-size: 24px; margin-bottom: 10px; }
.warning-content p { color: var(--text-secondary); }

/* visibilidade em mobile-landscape.css (retrato = aviso) */

@keyframes rotatePhone {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}

#mobile-back-btn { background: rgba(255,255,255,0.1); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; display: none !important; align-items: center; justify-content: center; font-size: 18px; margin-right: 15px; cursor: pointer; }

@media (max-width: 768px) {
    .mobile-only { display: flex !important; }
}

/* Login landscape legado — desativado em mobile (ver mobile-landscape.css) */
@media (max-height: 500px) and (orientation: landscape) {
    html:not(.thoflix-mobile) #login-screen { padding: 20px 0; align-items: flex-start; overflow-y: auto; }
    html:not(.thoflix-mobile) .login-card { margin: 10px auto; padding: 20px 30px; }
}

/* Hide Login Scrollbar */
#login-screen::-webkit-scrollbar { display: none; }
#login-screen { -ms-overflow-style: none; scrollbar-width: none; overflow: hidden; }

#login-screen { overflow-y: auto !important; scrollbar-width: none; -ms-overflow-style: none; }
#login-screen::-webkit-scrollbar { display: none !important; }

/* --- MOBILE LANDSCAPE OPTIMIZATION --- */
@media (max-height: 500px) {
    .sidebar { width: 70px !important; height: 100vh !important; flex-direction: column !important; top: 0 !important; left: 0 !important; bottom: auto !important; padding: 10px 0 !important; }
    .sidebar-logo { display: block !important; margin-bottom: 10px !important; }
    .sidebar-logo img { width: 35px !important; }
    .sidebar nav li { padding: 10px 0 !important; gap: 2px !important; }
    .sidebar nav li i { font-size: 18px !important; }
    .sidebar nav li span { font-size: 8px !important; text-transform: uppercase; }
    .sidebar-footer { display: none !important; }

    .content-area {
        margin-left: 70px !important;
        padding: 0 20px 0 24px !important;
        padding-bottom: 0 !important;
    }
    .top-bar { padding: 10px 20px !important; }
    .hero-section { height: 280px !important; }
    .hero-content h1 { font-size: 22px !important; }
    .hero-btns { transform: scale(0.8); transform-origin: left; }
}

/* Remove as barras de rolagem no mobile (<900px) para permitir deslizar sem barra */
@media (max-width: 900px) {
    .sidebar nav ul,
    .category-list,
    .scroll-content,
    .continue-watching-list,
    .seasons-tabs,
    #category-items-wrapper,
    .category-content {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .sidebar nav ul::-webkit-scrollbar,
    .category-list::-webkit-scrollbar,
    .scroll-content::-webkit-scrollbar,
    .continue-watching-list::-webkit-scrollbar,
    .seasons-tabs::-webkit-scrollbar,
    #category-items-wrapper::-webkit-scrollbar,
    .category-content::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

@media (max-height: 500px) {
    .content-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 15px !important; }
    .item-card-poster { height: 200px !important; }
    .home-card { flex: 0 0 140px !important; }
    .home-card-poster { height: 200px !important; }
}

/* Final Consolidated Navigation Styles */
.category-container { 
    background: #12131c !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    gap: 0 !important;
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.category-list { 
    width: 250px !important; 
    min-width: 250px !important; 
    background: #12131c !important; 
    border: none !important; 
    border-right: 1px solid rgba(255,255,255,0.03) !important; 
    height: 100vh !important; 
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    position: sticky !important;
    top: 0 !important;
    z-index: 10;
    align-self: flex-start;
    overscroll-behavior: contain;
}

#category-items-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

#category-items-wrapper::-webkit-scrollbar { width: 4px; }
#category-items-wrapper::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

.category-header-label { 
    position: sticky !important; 
    top: 0 !important; 
    z-index: 100 !important; 
    background-color: #12131c !important; 
    padding: 25px 15px !important; 
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--accent-color) !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
}

.category-content {
    flex: 1;
    min-width: 0;
    background: var(--bg-color);
    padding: 30px !important;
}

/* Category Selected Header Styles (Item counts) */
.category-selected-header {
    margin-bottom: 15px;
    animation: fadeIn 0.4s ease-out;
}
.category-selected-count {
    font-size: 13px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .category-selected-header {
        margin-bottom: 10px;
    }
    .category-selected-count {
        font-size: 11px;
    }
}

/* Desktop: viewport fixo só na vista de categorias (lista + grelha) */
@media (min-width: 901px) {
    html:not(.thoflix-mobile) #main-app.screen.active {
        display: flex !important;
        flex-direction: row;
        min-height: 100vh;
    }

    html:not(.thoflix-mobile) #main-app.screen.active:has(.category-container) {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    html:not(.thoflix-mobile) body:has(.category-container) {
        overflow: hidden;
    }

    html:not(.thoflix-mobile) .content-area:has(.category-container) {
        flex: 1;
        min-width: 0;
        width: calc(100% - 110px) !important;
        max-width: calc(100vw - 110px) !important;
        min-height: 0;
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        display: flex !important;
        flex-direction: column;
        padding: 0 !important;
        box-sizing: border-box;
    }

    html:not(.thoflix-mobile) #view-container:has(.category-container) {
        flex: 1 1 auto;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column;
    }

    html:not(.thoflix-mobile) .category-container {
        flex: 1 1 auto;
        min-height: 0 !important;
        max-height: 100%;
        height: 100% !important;
        overflow: hidden;
        align-items: stretch;
    }

    html:not(.thoflix-mobile) .category-list {
        position: relative !important;
        top: auto !important;
        align-self: stretch !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        flex-shrink: 0;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        overscroll-behavior: contain;
    }

    html:not(.thoflix-mobile) #category-items-wrapper {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    html:not(.thoflix-mobile) .category-header-label {
        flex-shrink: 0;
        position: sticky !important;
        top: 0 !important;
    }

    html:not(.thoflix-mobile) .category-content {
        flex: 1 1 auto;
        min-height: 0;
        min-width: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

.hero-section { margin: 0 0 8px 0 !important; width: 100% !important; max-width: 100% !important; border-radius: 0 !important; box-sizing: border-box; }
.home-section-container { padding: 20px 0 !important; max-width: 100% !important; overflow: hidden !important; box-sizing: border-box; }
.streaming-hub { margin: 48px 0 12px 0 !important; max-width: 100% !important; overflow: hidden !important; box-sizing: border-box; }
.home-continue-section { margin-left: 0 !important; margin-right: 0 !important; max-width: 100% !important; overflow: hidden !important; box-sizing: border-box; }

/* #mobile-back-btn visibilidade controlada por App._updateMobileBackBtn() */


/* Final Overrides for Loading and VOD */
#loading-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #0c0d12 !important;
    display: none;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
}

#loading-screen.active {
    display: flex !important;
}

.loader-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.back-btn-orange {
    background: #f39c12 !important;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    margin-bottom: 30px;
    cursor: pointer;
}

.vod-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin-top: 12px;
    width: 100%;
}

.btn-play-large {
    width: 100%;
    background: linear-gradient(to right, #d35400, #e67e22) !important;
    border: none;
    padding: 20px;
    border-radius: 12px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(211, 84, 0, 0.3);
}

.btn-fav-large {
    width: 100%;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-fav-large i { font-size: 18px; }
.btn-fav-large::after { content: ' Adicionar aos Favoritos'; }
.btn-fav-large.active i { color: #e74c3c; }

/* High Priority Overlays to cover Sidebar */
#vod-details {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: transparent !important;
    z-index: 2000 !important; /* Above sidebar */
    overflow-y: auto !important;
}

#vod-details .vod-backdrop {
    z-index: 0 !important;
    filter: none !important;
    transform: none !important;
}

#player-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
    z-index: 3000 !important; /* Above everything */
}

/* Refined VOD Details Components - Image 2 Style */
.meta-item--rating {
    background: #f39c12 !important;
    color: white !important;
    font-weight: 700;
}

.meta-item--duration {
    background: rgba(255,255,255,0.1) !important;
    color: #eee !important;
    border: 1px solid rgba(255,255,255,0.1);
}

.vod-genre {
    color: #c4b5fd !important;
    font-size: 17px !important;
    margin-bottom: 16px !important;
    line-height: 1.45 !important;
    letter-spacing: 0.01em !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

.vod-plot {
    font-size: 17px !important;
    line-height: 1.75 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    margin-bottom: 28px !important;
    max-width: 52rem !important;
}

.vod-credits p {
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, 0.55) !important;
    margin-bottom: 8px !important;
}

.vod-credits p:last-child { margin-bottom: 0 !important; }

.vod-credits strong {
    color: #bbb !important;
    font-weight: 600;
}

/* CRITICAL FIX: Restore Horizontal VOD Details Layout */
#vod-details {
    display: none; /* Controlled by App.showVODDetails() */
}

#vod-details.active {
    display: block !important;
}

.vod-details-container {
    width: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 56px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    position: relative !important;
    z-index: 2 !important;
}

.vod-details-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: clamp(28px, 4vw, 56px) !important;
    max-width: 1180px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-top: 8px !important;
    box-sizing: border-box !important;
}

.vod-left {
    position: sticky;
    top: 88px;
    flex: 0 0 clamp(240px, 26vw, 300px) !important;
    max-width: 300px !important;
}

.vod-left img {
    width: 100% !important;
    max-height: 480px !important;
    aspect-ratio: 2 / 3 !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.vod-right {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.vod-top {
    width: 100%;
    flex-shrink: 0;
}

.vod-body-scroll {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

/* Final polish — manter bloco centralizado; colunas alinhadas ao topo */
.vod-details-container {
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: clamp(48px, 6vh, 96px) !important;
}

.vod-details-content {
    align-items: flex-start !important;
}

.vod-left {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.vod-right {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.back-btn-orange {
    margin-top: 0 !important;
}

.vod-right h1 {
    margin-top: 10px !important; /* Space after back button */
}

/* =============================================================================
   MOBILE & TABLET — layout responsivo (prioridade sobre regras anteriores)
   ============================================================================= */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

#main-app.screen.active {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.home-continue-section,
.streaming-hub {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

button,
.sidebar nav li,
.category-item,
.item-card,
.home-card,
.streaming-pill {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 900px) {
    #main-app.screen.active {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    html.thoflix-mobile #main-app.screen.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        padding-bottom: 0 !important;
    }

    .content-area {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 0 calc(68px + env(safe-area-inset-bottom, 0)) 0 !important;
        min-height: 0;
    }

    /* Início, configurações, etc. — scroll natural na área principal */
    html.thoflix-mobile .content-area:not(:has(.category-container)) {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: clip;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    html.thoflix-mobile .content-area:has(.category-container) {
        flex: 1 1 auto;
        min-height: 0;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden;
        padding-bottom: 0 !important;
    }

    #view-container {
        padding: calc(56px + env(safe-area-inset-top, 0)) 12px 16px !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    html.thoflix-mobile #view-container {
        flex: none;
        min-height: auto;
        overflow: visible;
    }

    html.thoflix-mobile .content-area:has(.category-container) #view-container {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .top-bar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        padding: max(8px, env(safe-area-inset-top, 0)) 12px 8px !important;
        justify-content: flex-start !important;
        align-items: center;
        gap: 8px;
        z-index: 120;
        pointer-events: none;
        background: linear-gradient(to bottom, rgba(18, 19, 28, 0.92) 0%, rgba(18, 19, 28, 0.55) 70%, transparent 100%);
    }

    .user-info {
        margin-left: auto;
        max-width: calc(100% - 52px);
        padding: 8px 12px !important;
        gap: 6px 10px;
        flex-wrap: wrap;
    }

    #user-display-name {
        font-size: 12px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-display-server {
        flex-basis: 100%;
        max-width: 100%;
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-display-server::before {
        display: none;
    }

    #mobile-back-btn {
        display: none;
        flex-shrink: 0;
        pointer-events: auto;
        min-width: 44px;
        min-height: 44px;
    }

    .sidebar {
        width: 100% !important;
        height: auto !important;
        min-height: calc(60px + env(safe-area-inset-bottom, 0));
        flex-direction: row !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 6px 4px env(safe-area-inset-bottom, 6px) !important;
        border-right: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(18, 19, 28, 0.97) !important;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        z-index: 150;
    }

    .sidebar-logo,
    .sidebar-footer {
        display: none !important;
    }

    .sidebar nav {
        width: 100%;
        overflow: hidden;
    }

    .sidebar nav ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        gap: 0;
        padding: 0 2px;
    }

    .sidebar nav li {
        flex: 0 0 auto;
        min-width: 52px;
        padding: 6px 8px !important;
        border-left: none !important;
        border-bottom: 3px solid transparent;
        scroll-snap-align: start;
        gap: 3px !important;
    }

    .sidebar nav li span {
        display: block !important;
        font-size: 9px !important;
        line-height: 1.1;
        max-width: 56px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar nav li i {
        font-size: 18px !important;
    }

    .sidebar nav li.active {
        border-bottom-color: var(--accent-color) !important;
    }

    .hero-section {
        height: min(52vh, 380px) !important;
        margin: 0 0 12px 0 !important;
        border-radius: 0 !important;
    }

    .hero-content {
        padding: 24px 16px !important;
        background: linear-gradient(to top, rgba(12, 13, 18, 0.98) 35%, rgba(12, 13, 18, 0.4) 100%) !important;
        justify-content: flex-end !important;
    }

    .hero-content h1 {
        font-size: clamp(22px, 6vw, 30px) !important;
    }

    .hero-content p {
        display: none;
    }

    .hero-img {
        width: 100% !important;
    }

    .hero-img img {
        mask-image: linear-gradient(to top, black 50%, transparent) !important;
    }

    .hero-btns {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        min-width: 0;
        flex: 1 1 auto;
        padding: 10px 14px !important;
        font-size: 13px !important;
    }

    .hero-indicators {
        left: 16px !important;
        bottom: 16px !important;
    }

    .streaming-hub {
        margin: 24px 12px 8px !important;
    }

    .streaming-hub-header h3 {
        font-size: 17px !important;
    }

    .streaming-pill {
        padding: 10px 14px !important;
        font-size: 12px !important;
    }

    .home-continue-section {
        margin: 0 12px !important;
        padding-top: 24px !important;
    }

    .home-continue-section .section-title.section-title--continue {
        padding-left: 0 !important;
        font-size: 18px !important;
    }

    .home-section-container {
        padding: 12px !important;
        margin-bottom: 24px !important;
    }

    .section-header h2 {
        font-size: 18px !important;
    }

    .home-card {
        flex: 0 0 128px !important;
    }

    .home-card-poster {
        height: 190px !important;
    }

    .continue-card {
        flex: 0 0 min(88vw, 260px) !important;
    }

    .horizontal-scroller,
    .horizontal-scroller .scroll-row {
        gap: 8px !important;
    }

    .scroll-btn {
        display: flex !important;
        flex: 0 0 36px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        opacity: 1 !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .scroll-btn:hover {
        transform: scale(1.05) !important;
    }

    .home-continue-section .section-title.section-title--continue {
        padding-left: 0 !important;
    }

    .content-grid,
    #items-grid.content-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding-bottom: 24px !important;
    }

    .card-info {
        padding: 8px !important;
    }

    .card-info h4 {
        font-size: 11px !important;
        white-space: normal !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.25;
    }

    .category-container {
        flex-direction: column !important;
        min-height: auto !important;
        width: 100% !important;
    }

    .category-list {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        position: sticky !important;
        top: calc(52px + env(safe-area-inset-top, 0)) !important;
        z-index: 40 !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding: 8px 4px !important;
    }

    .category-header-label {
        display: none !important;
    }

    .category-item {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        margin: 0 4px !important;
        padding: 10px 14px !important;
        scroll-snap-align: start;
        min-height: 44px;
    }

    html.thoflix-mobile .category-container {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    html.thoflix-mobile .category-content {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 12px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .category-card {
        padding: 20px 12px !important;
    }

    .search-page-container {
        padding: calc(64px + env(safe-area-inset-top, 0)) 12px 24px !important;
    }

    .search-hero h2 {
        font-size: 22px !important;
    }

    .large-search-input input {
        font-size: 16px !important;
        padding: 12px 20px !important;
    }

    .settings-page {
        padding: 8px 4px 24px !important;
    }

    .settings-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px;
        padding: 14px 16px !important;
    }

    .action-btn {
        padding: 14px 16px !important;
        font-size: 15px !important;
    }

    /* VOD detalhes — coluna no telemóvel */
    .vod-details-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .vod-left {
        position: static !important;
        flex: 0 0 auto !important;
        width: min(200px, 52vw) !important;
        max-width: 220px !important;
    }

    .vod-right {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .vod-meta {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .vod-actions {
        max-width: 100% !important;
        width: 100% !important;
    }

    .vod-details-container {
        padding: calc(56px + env(safe-area-inset-top, 0)) 16px 24px !important;
    }

    .vod-plot {
        font-size: 14px;
        line-height: 1.55;
    }

    .episodes-list {
        justify-content: stretch !important;
    }

    .episode-item {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Modal canal ao vivo */
    .modal-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(92vh, 92dvh) !important;
        border-radius: 16px 16px 0 0 !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-preview {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }

    .modal-body {
        padding: 18px 16px 24px !important;
    }

    .modal-header-info h2 {
        font-size: 20px !important;
    }

    .modal-actions {
        flex-direction: column !important;
        gap: 10px;
    }

    .btn-play,
    .btn-close {
        width: 100% !important;
        min-height: 48px;
        justify-content: center;
    }

    /* Player */
    .player-header {
        padding: max(10px, env(safe-area-inset-top, 0)) 12px 12px !important;
    }

    #close-player {
        min-width: 44px;
        min-height: 44px;
    }

    #main-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Login */
    #login-screen {
        padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
    }

    .login-card {
        max-width: min(360px, calc(100vw - 32px));
        margin: 16px;
    }
}

@media (max-width: 380px) {
    .status-indicator {
        display: none;
    }

    .content-grid,
    #items-grid.content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .sidebar nav li {
        min-width: 48px;
        padding: 6px 6px !important;
    }

    .sidebar nav li span {
        font-size: 8px !important;
        max-width: 48px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .content-area {
        margin-left: 80px !important;
        padding: 0 20px 24px 24px !important;
    }

    .category-list {
        width: 200px !important;
        min-width: 200px !important;
    }

    #view-container {
        padding: 20px 24px !important;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }
}

/* Telemóvel em paisagem: menu lateral compacto */
@media (max-height: 500px) and (max-width: 900px) {
    .sidebar {
        width: 64px !important;
        height: 100vh !important;
        height: 100dvh !important;
        flex-direction: column !important;
        top: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        padding: 8px 0 env(safe-area-inset-bottom, 0) !important;
        border-top: none !important;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .sidebar nav ul {
        flex-direction: column !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .sidebar nav li span {
        font-size: 7px !important;
    }

    .content-area {
        margin-left: 64px !important;
        padding: 0 12px 12px 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 12px) !important;
    }

    #view-container {
        padding: 52px 12px 12px !important;
    }

    .hero-section {
        height: 220px !important;
    }
}

/* Custom Player Fullscreen Loading Spinner */
#player-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 102;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.player-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top: 4px solid #ff3b30; /* Vermelho premium combinando com o selo e o tema */
    border-radius: 50%;
    animation: player-spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.5);
}

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

/* Custom Webkit Native Video Progress/Accent Color */
#main-video {
    accent-color: #e68a18 !important;
}

/* Força a cor laranja premium no indicador de progresso ativo do Webkit (Chrome/Edge/Safari/Opera) */
#main-video::-webkit-media-controls-timeline,
video::-webkit-media-controls-timeline {
    accent-color: #e68a18 !important;
}

#main-video::-webkit-media-controls-progress-bar,
video::-webkit-media-controls-progress-bar {
    background-color: #e68a18 !important; /* Cor premium da imagem */
    color: #e68a18 !important;
}

/* Garante o laranja também no slider de volume nativo */
#main-video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-volume-slider {
    accent-color: #e68a18 !important;
}

/* Double Tap Seek Feedback Styles (Estilo Netflix/YouTube) */
.double-tap-feedback {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#double-tap-feedback-left {
    left: 0;
    border-radius: 0 120px 120px 0; /* Arco apontando para a direita */
    width: 100px;
    height: 200px;
    padding-right: 15px;
}

#double-tap-feedback-right {
    right: 0;
    border-radius: 120px 0 0 120px; /* Arco apontando para a esquerda */
    width: 100px;
    height: 200px;
    padding-left: 15px;
}

.double-tap-feedback.active {
    opacity: 1;
    animation: feedback-pulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.double-tap-feedback .feedback-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.double-tap-feedback .feedback-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@keyframes feedback-pulse {
    0% { transform: translateY(-50%) scale(0.85); opacity: 0; }
    20% { transform: translateY(-50%) scale(1.05); opacity: 0.95; }
    80% { transform: translateY(-50%) scale(1); opacity: 0.95; }
    100% { transform: translateY(-50%) scale(0.9); opacity: 0; }
}

/* Autoplay Next Episode Panel (Netflix/Prime Style) */
.autoplay-panel {
    position: absolute;
    bottom: 80px; /* Acima dos controles nativos */
    right: 24px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    width: 320px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.autoplay-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.autoplay-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.autoplay-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.autoplay-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autoplay-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

/* SVG Circular Countdown */
.autoplay-timer-box {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.autoplay-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Começa no topo */
}

.autoplay-bg-circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.autoplay-progress-circle {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 1s linear;
}

.autoplay-number {
    position: absolute;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

/* Buttons */
.btn-autoplay-now {
    flex-grow: 1;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-autoplay-now:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 138, 24, 0.35);
}

.btn-autoplay-now:active {
    transform: translateY(0);
}

.btn-autoplay-cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-autoplay-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Responsividade Mobile para o Painel */
@media (max-width: 768px) {
    .autoplay-panel {
        bottom: 90px;
        right: 16px;
        left: 16px;
        width: auto;
        padding: 12px 16px;
    }
}

/* Custom Playback Speed Controller */
.player-speed-menu {
    position: relative;
    margin-left: auto; /* Alinha o botão no canto direito do header flexbox */
    margin-right: 16px;
    z-index: 1010;
}

.player-speed-trigger {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.player-speed-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
}

.player-speed-trigger i {
    font-size: 14px;
    color: var(--accent-color);
}

.speed-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    width: 140px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1020;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.speed-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.speed-option {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.speed-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.speed-option.active {
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
}

/* Custom Audio and Subtitles Controller */
.player-tracks-menu {
    position: relative;
    margin-right: 16px;
    z-index: 1010;
}

.tracks-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
    width: 240px;
    max-height: 380px;
    overflow-y: auto;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1020;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tracks-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Custom Scrollbar for Tracks Dropdown */
.tracks-dropdown::-webkit-scrollbar {
    width: 4px;
}
.tracks-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.tracks-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.tracks-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tracks-section h4 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 6px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tracks-section h4 i {
    color: var(--accent-color);
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-option {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.track-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.track-option.active {
    background: rgba(230, 138, 24, 0.15);
    border-color: rgba(230, 138, 24, 0.3);
    color: var(--accent-color);
    font-weight: 600;
}

.track-option .track-check {
    font-size: 11px;
    color: var(--accent-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.track-option.active .track-check {
    opacity: 1;
}

.tracks-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

/* Seletor Manual de Qualidade HLS Premium */
.player-quality-menu {
    position: relative;
    margin-right: 16px;
    z-index: 1010;
}

.quality-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
    width: 200px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1020;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.quality-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.quality-dropdown::-webkit-scrollbar {
    width: 4px;
}
.quality-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.quality-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.quality-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quality-section h4 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 6px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quality-section h4 i {
    color: var(--accent-color);
}

.quality-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


/* YouTube-style Center HUD Feedback for Keyboard Shortcuts */
.hud-feedback-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1005;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.hud-feedback-overlay.active {
    opacity: 1;
    animation: hud-feedback-fade 0.5s forwards;
}

.hud-feedback-circle {
    width: 72px;
    height: 72px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.hud-feedback-circle i {
    font-size: 24px;
    color: white;
}

@keyframes hud-feedback-fade {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.95; }
    80% { transform: translate(-50%, -50%) scale(1); opacity: 0.95; }
    100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
}

/* Custom Header Buttons (Picture-in-Picture) */
.player-header-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1010;
    margin-right: 16px;
}

.player-header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.player-header-btn.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(230, 138, 24, 0.15);
}

/* Custom Skip Intro (Pular Abertura) Button */
.player-skip-intro {
    position: absolute;
    bottom: 100px;
    right: 48px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 1005;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.player-skip-intro:hover {
    background: white;
    color: #0f172a;
    border-color: white;
    transform: translateY(10px) scale(1.05);
}

.player-skip-intro.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.player-skip-intro.active:hover {
    transform: translateY(0) scale(1.05);
}

.player-skip-intro i {
    font-size: 14px;
    color: var(--accent-color);
    transition: color 0.2s ease;
}

.player-skip-intro:hover i {
    color: #0f172a;
}

/* Premium highlight for active/watched episode */
.episode-item.active {
    background: rgba(241, 196, 15, 0.06) !important;
    border-color: rgba(241, 196, 15, 0.4) !important;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.1);
}

.episode-item.active:hover {
    background: rgba(241, 196, 15, 0.1) !important;
    border-color: rgba(241, 196, 15, 0.6) !important;
    box-shadow: 0 8px 24px rgba(241, 196, 15, 0.2);
}

.episode-item.active .episode-num {
    background: linear-gradient(135deg, #f39c12, #f1c40f) !important;
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}

.episode-item.active .episode-info p {
    color: #f1c40f !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.episode-progress-indicator {
    color: #f1c40f;
    font-size: 16px;
    margin-left: auto;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ==========================================================================
   Premium Custom VOD Controls & Seekbar Hover Preview
   ========================================================================== */
#vod-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px 30px 40px;
    background: linear-gradient(to top, rgba(12, 13, 18, 0.96) 0%, rgba(12, 13, 18, 0.75) 60%, transparent 100%);
    z-index: 101;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.vod-controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.vod-seekbar-container {
    position: relative;
    width: 100%;
    height: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.vod-seekbar-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    transition: height 0.15s ease;
}

.vod-seekbar-container:hover .vod-seekbar-track,
.vod-seekbar-container.dragging .vod-seekbar-track {
    height: 6px;
}

.vod-seekbar-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    width: 0%;
}

.vod-seekbar-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #e68a18);
    border-radius: 4px;
    width: 0%;
}

.vod-seekbar-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 2;
}

.vod-seekbar-container:hover .vod-seekbar-handle,
.vod-seekbar-container.dragging .vod-seekbar-handle {
    transform: translate(-50%, -50%) scale(1);
}

/* Seekbar Floating Hover Tooltip (Netflix & YouTube style) */
.vod-seekbar-time-tooltip {
    position: absolute;
    bottom: 26px;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    z-index: 102;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vod-seekbar-time-tooltip.active {
    opacity: 1;
}

.vod-tooltip-thumbnail-container {
    width: 160px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.vod-tooltip-thumbnail-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#vod-tooltip-time {
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Controls Alignment and Typography */
.vod-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.vod-controls-left,
.vod-controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vod-control-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.vod-control-btn:hover {
    background: rgba(243, 156, 18, 0.22);
    border-color: rgba(243, 156, 18, 0.6);
    color: #f39c12;
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(243, 156, 18, 0.25);
}

.vod-control-btn:active {
    transform: scale(0.95);
}

.vod-time-display {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    user-select: none;
    -webkit-user-select: none;
}

.vod-time-separator {
    color: rgba(255, 255, 255, 0.35);
    margin: 0 2px;
}

/* Volume Slider Overlay */
.vod-volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vod-volume-slider {
    width: 0;
    opacity: 0;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    outline: none;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    accent-color: #f39c12;
    cursor: pointer;
}

.vod-volume-container:hover .vod-volume-slider,
.vod-volume-slider:focus {
    width: 80px;
    opacity: 1;
}

.vod-volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 4px;
}

.vod-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f39c12;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0,0,0,0.6);
    margin-top: -4px;
}

.vod-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f39c12;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* Responsive adjustment for controls height on small landscape screens */
@media (max-width: 768px) {
    #vod-controls-overlay {
        padding: 10px 20px 20px 20px;
    }
    .vod-controls-wrapper {
        gap: 8px;
    }
    .vod-control-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .vod-seekbar-time-tooltip {
        bottom: 22px;
    }
    .vod-tooltip-thumbnail-container {
        width: 120px;
        height: 67.5px;
    }
}

/* ==========================================================================
   Multi-Profile and Saved Accounts CSS (Premium design by Antigravity)
   ========================================================================== */

/* Fullscreen Profile Screen */
#profile-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2147483645 !important;
    background: #090a0f;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#profile-screen.active {
    display: flex !important;
}

/* Glassmorphic Backdrop Glow Spheres */
.profile-bg-glows {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
}

.glow-1 {
    top: -10%;
    left: 15%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, #ff6b6b 0%, transparent 70%);
    animation: pulse-glow 8s ease-in-out infinite alternate;
}

.glow-2 {
    bottom: -10%;
    right: 15%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #4facfe 0%, transparent 70%);
    animation: pulse-glow 12s ease-in-out infinite alternate-reverse;
}

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.2; }
    100% { transform: scale(1.15) translate(3%, 5%); opacity: 0.3; }
}

.profile-container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 800px;
    animation: profile-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.profile-heading {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 45px;
    letter-spacing: 1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Profiles Grid and Cards */
.profiles-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 36px;
    margin-bottom: 50px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    width: 140px;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 3px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar i {
    opacity: 0.85;
    transition: all 0.3s ease;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.profile-card:hover .profile-avatar {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 35px var(--glow-color);
}

.profile-card:hover .profile-avatar i {
    opacity: 1;
    transform: scale(1.05);
}

.profile-name {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.profile-card:hover .profile-name {
    color: #fff;
}

/* Neon Avatar Color Gradients */
.avatar-coral {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    --glow-color: rgba(255, 107, 107, 0.6);
}

.avatar-breeze {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    --glow-color: rgba(79, 172, 254, 0.6);
}

.avatar-purple {
    background: linear-gradient(135deg, #b180ff, #f880ff);
    --glow-color: rgba(177, 128, 255, 0.6);
}

.avatar-lime {
    background: linear-gradient(135deg, #a8ff78, #78ffd6);
    --glow-color: rgba(168, 255, 120, 0.6);
}

.avatar-gold {
    background: linear-gradient(135deg, #f6d365, #fda085);
    --glow-color: rgba(246, 211, 101, 0.6);
}

.avatar-sunset {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    --glow-color: rgba(240, 147, 251, 0.6);
}

/* Manage Profiles Mode (Wiggle & Edit Overlay) */
@keyframes profile-wiggle {
    0%, 100% { transform: rotate(-1.5deg); }
    50% { transform: rotate(1.5deg); }
}

.profile-card.manage-mode {
    animation: profile-wiggle 0.3s ease-in-out infinite;
}

.profile-card.manage-mode .profile-avatar::after {
    content: '\f303'; /* FontAwesome edit pencil icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    opacity: 0.9;
    transition: all 0.25s ease;
    border: 2px solid var(--accent-color);
}

.profile-card.manage-mode:hover .profile-avatar::after {
    background: rgba(0, 0, 0, 0.45);
    font-size: 28px;
}

.profile-actions-row {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-profile-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.btn-profile-action:hover, .btn-profile-action.managing {
    background: #fff;
    color: #0c0d12;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-profile-action.managing {
    background: var(--accent-gradient);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(230, 138, 24, 0.3);
}

/* Profile Edit Modal styles */
#profile-edit-modal {
    z-index: 2147483647 !important;
}

.profile-edit-card {
    width: 90% !important;
    max-width: 440px !important;
    border-radius: 20px !important;
    padding: 24px 28px !important;
}

.profile-edit-header h2 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 24px;
}

.profile-edit-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.profile-edit-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: white;
    box-shadow: 0 0 25px var(--glow-color);
    transition: all 0.3s ease;
    border: 3px solid rgba(255,255,255,0.15);
    margin-bottom: 16px;
}

.edit-avatar-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.avatar-colors-picker {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.avatar-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.avatar-option:hover {
    transform: scale(1.15);
}

.avatar-option.selected {
    transform: scale(1.15);
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.profile-edit-name-section {
    text-align: left;
    margin-bottom: 28px;
}

.profile-edit-name-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.profile-edit-footer {
    display: flex;
    gap: 14px;
}

.btn-profile-save {
    flex: 1;
    background: var(--accent-gradient);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-profile-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(230, 138, 24, 0.35);
}

.btn-profile-cancel {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-profile-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Sidebar Profile Switcher */
.sidebar-profile-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    border-bottom: 1px solid var(--sidebar-edge);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.sidebar-profile-switch:hover {
    background: rgba(255, 255, 255, 0.04);
}

.profile-switch-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
    transition: var(--transition);
}

.sidebar-profile-switch:hover .profile-switch-avatar {
    transform: scale(1.05);
}

.profile-switch-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sidebar-profile-switch span {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90px;
    margin-top: 2px;
}

.sidebar-profile-switch p {
    font-size: 9px;
    color: var(--text-secondary);
    margin: 2px 0 0 0;
    opacity: 0.8;
}

.sidebar-profile-switch > i {
    display: none;
}

/* Saved Accounts on Login Screen */
.login-saved-accounts {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-saved-accounts h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    margin-bottom: 14px;
    font-weight: 700;
}

.saved-accounts-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.saved-account-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 10px 10px;
    width: 108px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.saved-account-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.saved-account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    margin-bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    flex-shrink: 0;
}

.saved-account-avatar i {
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.saved-account-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.saved-account-user {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    width: 100%;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.saved-account-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saved-account-delete {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border: none;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

.saved-account-card:hover .saved-account-delete {
    opacity: 1;
}

.saved-account-delete:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Custom Checkbox elements inside login */
.remember-group {
    margin: 12px 0 22px 0;
    display: flex;
    justify-content: flex-start;
}

.remember-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
}

.remember-checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-box {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.remember-checkbox-label:hover .checkbox-box {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.remember-checkbox-label input:checked ~ .checkbox-box {
    background: var(--accent-gradient);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(230, 138, 24, 0.3);
}

.checkbox-box i {
    color: #fff;
    font-size: 10px;
    opacity: 0;
    transition: all 0.2s ease;
    transform: scale(0.6);
}

.remember-checkbox-label input:checked ~ .checkbox-box i {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   Custom Cartoon and Pop Culture Profile Avatars (Implemented by Antigravity)
   ========================================================================== */

.profile-avatar.avatar-img-cyberpunk,
.profile-edit-avatar-preview.avatar-img-cyberpunk,
.profile-switch-avatar.avatar-img-cyberpunk,
.saved-account-avatar.avatar-img-cyberpunk,
.avatar-option.avatar-img-cyberpunk {
    background-image: url('../img/avatars/cyberpunk.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    --glow-color: rgba(255, 107, 107, 0.6);
}

.profile-avatar.avatar-img-popcorn,
.profile-edit-avatar-preview.avatar-img-popcorn,
.profile-switch-avatar.avatar-img-popcorn,
.saved-account-avatar.avatar-img-popcorn,
.avatar-option.avatar-img-popcorn {
    background-image: url('../img/avatars/popcorn.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    --glow-color: rgba(230, 138, 24, 0.6);
}

.profile-avatar.avatar-img-astronaut,
.profile-edit-avatar-preview.avatar-img-astronaut,
.profile-switch-avatar.avatar-img-astronaut,
.saved-account-avatar.avatar-img-astronaut,
.avatar-option.avatar-img-astronaut {
    background-image: url('../img/avatars/astronaut.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    --glow-color: rgba(79, 172, 254, 0.6);
}

.profile-avatar.avatar-img-monster,
.profile-edit-avatar-preview.avatar-img-monster,
.profile-switch-avatar.avatar-img-monster,
.saved-account-avatar.avatar-img-monster,
.avatar-option.avatar-img-monster {
    background-image: url('../img/avatars/monster.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    --glow-color: rgba(168, 255, 120, 0.6);
}

.profile-avatar.avatar-img-ninja,
.profile-edit-avatar-preview.avatar-img-ninja,
.profile-switch-avatar.avatar-img-ninja,
.saved-account-avatar.avatar-img-ninja,
.avatar-option.avatar-img-ninja {
    background-image: url('../img/avatars/ninja.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    --glow-color: rgba(0, 242, 254, 0.6);
}

.profile-avatar.avatar-img-cat,
.profile-edit-avatar-preview.avatar-img-cat,
.profile-switch-avatar.avatar-img-cat,
.saved-account-avatar.avatar-img-cat,
.avatar-option.avatar-img-cat {
    background-image: url('../img/avatars/cat.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    --glow-color: rgba(240, 147, 251, 0.6);
}

/* Hide user icon when avatar images are applied */
.profile-avatar.avatar-img-cyberpunk i,
.profile-avatar.avatar-img-popcorn i,
.profile-avatar.avatar-img-astronaut i,
.profile-avatar.avatar-img-monster i,
.profile-avatar.avatar-img-ninja i,
.profile-avatar.avatar-img-cat i,
.saved-account-avatar.avatar-img-cyberpunk i,
.saved-account-avatar.avatar-img-popcorn i,
.saved-account-avatar.avatar-img-astronaut i,
.saved-account-avatar.avatar-img-monster i,
.saved-account-avatar.avatar-img-ninja i,
.saved-account-avatar.avatar-img-cat i,
.profile-edit-avatar-preview.avatar-img-cyberpunk i,
.profile-edit-avatar-preview.avatar-img-popcorn i,
.profile-edit-avatar-preview.avatar-img-astronaut i,
.profile-edit-avatar-preview.avatar-img-monster i,
.profile-edit-avatar-preview.avatar-img-ninja i,
.profile-edit-avatar-preview.avatar-img-cat i,
.profile-switch-avatar.avatar-img-cyberpunk i,
.profile-switch-avatar.avatar-img-popcorn i,
.profile-switch-avatar.avatar-img-astronaut i,
.profile-switch-avatar.avatar-img-monster i,
.profile-switch-avatar.avatar-img-ninja i,
.profile-switch-avatar.avatar-img-cat i {
    display: none !important;
}

/* Specific glows for edit and selector preview indicators */
.profile-edit-avatar-preview.avatar-img-cyberpunk { box-shadow: 0 0 25px rgba(255, 107, 107, 0.6); }
.profile-edit-avatar-preview.avatar-img-popcorn { box-shadow: 0 0 25px rgba(230, 138, 24, 0.6); }
.profile-edit-avatar-preview.avatar-img-astronaut { box-shadow: 0 0 25px rgba(79, 172, 254, 0.6); }
.profile-edit-avatar-preview.avatar-img-monster { box-shadow: 0 0 25px rgba(168, 255, 120, 0.6); }
.profile-edit-avatar-preview.avatar-img-ninja { box-shadow: 0 0 25px rgba(0, 242, 254, 0.6); }
.profile-edit-avatar-preview.avatar-img-cat { box-shadow: 0 0 25px rgba(240, 147, 251, 0.6); }

/* Mobile Screen Lock System */
#player-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px 60px 20px;
    box-sizing: border-box;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#player-lock-overlay.active {
    opacity: 1;
}

/* Toast Notification (Top) */
.player-lock-toast {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

#player-lock-overlay.active .player-lock-toast.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Trigger Button (Bottom-Center) */
.player-unlock-trigger {
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 8px 24px 8px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.85);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
    border-style: solid;
}

#player-lock-overlay.active .player-unlock-trigger.visible {
    transform: scale(1);
    opacity: 1;
}

.unlock-circle {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
}

.player-unlock-trigger:hover .unlock-circle {
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(230, 138, 24, 0.5);
}

.player-unlock-trigger.confirming {
    border-color: rgba(230, 138, 24, 0.4);
    background: rgba(230, 138, 24, 0.15);
}

.player-unlock-trigger.confirming .unlock-circle {
    background: var(--primary-color);
    color: white;
    animation: lockPulse 1.2s infinite alternate;
}

.player-unlock-trigger span {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

@keyframes lockPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 138, 24, 0.5); }
    100% { transform: scale(1.08); box-shadow: 0 0 15px 4px rgba(230, 138, 24, 0.3); }
}

/* ==========================================================================
   Premium Connection Warning and Network Status Modifier Styles
   ========================================================================== */

/* Dynamic network connection status modifications */
.status-indicator.status-slow {
    color: #f39c12 !important;
}
.status-indicator.status-slow .status-dot,
.status-badge.status-slow .dot {
    background: #f39c12 !important;
    box-shadow: 0 0 10px #f39c12 !important;
}

.status-indicator.status-offline {
    color: #e74c3c !important;
}
.status-indicator.status-offline .status-dot,
.status-badge.status-offline .dot {
    background: #e74c3c !important;
    box-shadow: 0 0 10px #e74c3c !important;
}


/* Glassmorphic Playback Error Overlay Centered in Video Player */
#player-playback-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 16;
    opacity: 1;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#player-playback-error.hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

.player-error-box {
    text-align: center;
    padding: 35px 45px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 28px;
    max-width: 440px;
    width: 88%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65), 0 0 35px rgba(231, 76, 60, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: warningPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.player-error-icon {
    font-size: 46px;
    color: #e74c3c;
    margin-bottom: 20px;
    text-shadow: 0 0 25px rgba(231, 76, 60, 0.45);
    animation: errorPulse 1.8s infinite ease-in-out;
}

.player-error-box h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: 0.6px;
}

.player-error-box p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0 0 20px 0;
    letter-spacing: 0.2px;
}

.btn-error-retry {
    background: var(--accent-gradient);
    border: none;
    border-radius: 20px;
    color: white;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(230, 138, 24, 0.35);
}

.btn-error-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 138, 24, 0.5);
}

.btn-error-retry i {
    font-size: 12px;
    transition: transform 0.4s ease;
}

.btn-error-retry:hover i {
    transform: rotate(180deg);
}

@keyframes errorPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
        text-shadow: 0 0 15px rgba(231, 76, 60, 0.3);
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
        text-shadow: 0 0 30px rgba(231, 76, 60, 0.7);
    }
}


