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

:root {
    --bg-color: #141414;
    --card-bg: #181818;
    --netflix-red: #E50914;
    --netflix-red-hover: #b80710;
    --text-white: #FFFFFF;
    --text-gray: #A3A3A3;
    --cz-green: #1b8247;
    --tit-gold: #cea918;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: background-color 0.4s ease;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
}

.navbar.scrolled {
    background-color: #141414;
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 35px;
}

.logo {
    color: var(--netflix-red);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
    font-style: italic;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: #E5E5E5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-links a:hover, .nav-links a.active {
    color: #FFFFFF;
    font-weight: 700;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1100;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    gap: 8px;
    transition: border-color 0.3s, background 0.3s;
    user-select: text !important;
    -webkit-user-select: text !important;
    cursor: text !important;
}

.search-box:focus-within {
    border-color: var(--netflix-red);
    background: rgba(0, 0, 0, 0.95);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #FFF;
    font-size: 14px;
    width: 180px;
    transition: width 0.3s;
    user-select: text !important;
    -webkit-user-select: text !important;
    cursor: text !important;
    pointer-events: auto !important;
}

.search-box input:focus {
    width: 250px;
}

.btn-sync {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFF;
    padding: 6px 12px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-sync:hover {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
}

.profile-badge img {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 0 4%;
    margin-bottom: 20px;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.65);
    transition: background-image 0.5s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(77deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%),
                linear-gradient(180deg, rgba(20,20,20,0) 60%, rgba(20,20,20,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 620px;
}

.hero-badge {
    display: inline-block;
    background: var(--netflix-red);
    color: #FFF;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.meta-rating {
    color: #46D369;
}

.meta-year {
    color: #DDD;
}

.meta-lang {
    background: var(--cz-green);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 800;
}

.meta-genres {
    color: var(--text-gray);
    font-size: 13px;
}

.hero-overview {
    font-size: 15px;
    line-height: 1.5;
    color: #DDD;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 14px;
}

.btn-play {
    background: #FFFFFF;
    color: #000000;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-play:hover {
    background: rgba(255, 255, 255, 0.75);
}

.btn-info {
    background: rgba(109, 109, 110, 0.7);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-info:hover {
    background: rgba(109, 109, 110, 0.4);
}

/* NETFLIX ROWS */
.main-content {
    position: relative;
    z-index: 20;
    padding: 0 4% 60px 4%;
}

.netflix-row {
    margin-bottom: 38px;
}

.row-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #E5E5E5;
}

.row-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 0 20px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.row-scroller::-webkit-scrollbar {
    height: 6px;
}

.row-scroller::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

/* MOVIE & SERIES CARDS */
.card {
    flex: 0 0 175px;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease;
    background-color: var(--card-bg);
}

.card:hover {
    transform: scale(1.08) translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.9);
    z-index: 50;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 145%; /* Aspect ratio for portrait poster */
    background: #222;
}

.card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-lang {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    color: #FFF;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.badge-cz {
    background-color: var(--cz-green);
}

.badge-tit {
    background-color: var(--tit-gold);
}

.card-info {
    padding: 10px;
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-gray);
}

/* CONTINUE WATCHING PROGRESS BAR */
.continue-card {
    position: relative;
}

.btn-remove-cw {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    opacity: 0.85;
    transition: all 0.2s;
}

.btn-remove-cw:hover {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
    transform: scale(1.15);
    opacity: 1;
}

.card-ep-sub {
    font-size: 11px;
    color: #46D369;
    font-weight: 700;
    margin-bottom: 3px;
}

.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.25);
}

.progress-bar-fill {
    height: 100%;
    background: var(--netflix-red);
}

/* FILTER GRID */
.filter-view {
    padding: 90px 4% 60px 4%;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.btn-close-filter {
    background: rgba(255,255,255,0.15);
    color: #FFF;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

/* DETAIL MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.detail-modal-card {
    position: relative;
    background: #181818;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    border-radius: 8px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255,255,255,0.4);
    color: #FFF;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #FFF;
    color: #000;
}

.modal-hero {
    position: relative;
    height: 340px;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
}

.modal-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(24,24,24,0) 40%, rgba(24,24,24,1) 100%);
}

.modal-hero-content {
    position: relative;
    z-index: 10;
}

.modal-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    margin-bottom: 14px;
}

.modal-body {
    padding: 24px;
}

.modal-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #CCC;
    margin-bottom: 28px;
}

/* EPISODES SECTION */
.episodes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.season-dropdown {
    background: #242424;
    color: #FFF;
    border: 1px solid #444;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.episode-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #222;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.episode-item:hover {
    background: #333;
}

.episode-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ep-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-gray);
    min-width: 30px;
}

.ep-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ep-info span {
    font-size: 11px;
    color: var(--cz-green);
    font-weight: 700;
}

.btn-ep-play {
    background: var(--netflix-red);
    color: #FFF;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* FULLSCREEN PLAYER */
.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 5000;
    display: flex;
    flex-direction: column;
}

.player-topbar {
    height: 55px;
    background: rgba(15, 15, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #222;
}

.btn-back {
    background: transparent;
    border: none;
    color: #FFF;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    color: var(--netflix-red);
}

.player-title {
    font-size: 16px;
    font-weight: 700;
    color: #DDD;
}

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

.server-label {
    font-size: 13px;
    color: var(--text-gray);
}

.server-dropdown {
    background: #242424;
    color: #FFF;
    border: 1px solid #444;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}

/* PLAYER TIME CONTROLLER & BADGE */
.player-time-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #FFF;
}

.time-display {
    font-weight: 700;
    font-family: monospace;
    font-size: 14px;
    color: #E50914;
    letter-spacing: 0.5px;
}

.time-quick-adjust {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.btn-time-step {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #DDD;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-time-step:hover {
    background: #FFF;
    color: #000;
}

.btn-set-time {
    background: rgba(229, 9, 20, 0.25);
    border-color: rgba(229, 9, 20, 0.5);
    color: #FFF;
}

.btn-set-time:hover {
    background: var(--netflix-red);
    color: #FFF;
}

.btn-ticker-toggle {
    background: rgba(0, 113, 235, 0.25);
    border-color: rgba(0, 113, 235, 0.5);
    color: #FFF;
    padding: 3px 7px;
    font-size: 11px;
    margin-left: 2px;
}

.btn-ticker-toggle:hover {
    background: #0071EB;
    color: #FFF;
}

@media (max-width: 768px) {
    .player-topbar {
        height: auto;
        padding: 8px 10px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .player-title {
        font-size: 13px;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .player-controls-right {
        flex-wrap: wrap;
        gap: 6px;
    }
    .player-time-badge {
        padding: 2px 6px;
        font-size: 11px;
    }
    .time-display {
        font-size: 12px;
    }
    .btn-time-step {
        padding: 2px 4px;
        font-size: 10px;
    }
    .server-dropdown {
        font-size: 11px;
        padding: 4px 6px;
        max-width: 140px;
    }
    .btn-fullscreen-toggle {
        font-size: 11px;
        padding: 4px 8px;
    }
}

.resume-toast {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--netflix-red);
    color: #FFF;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 25px rgba(0,0,0,0.8);
    z-index: 5100;
    pointer-events: none;
    animation: fadeInDown 0.4s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translate(-50%, -15px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.player-iframe-container {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.player-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-gray);
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* PERFORMANCE OPTIMIZATIONS */
.card {
    will-change: transform;
    contain: content;
    transform: translateZ(0);
}

.row-scroller {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* FULLSCREEN TOGGLE BUTTON */
.btn-fullscreen-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFF;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-fullscreen-toggle:hover {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
}

/* PROFILE IN NAVBAR */
.profile-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
}

.profile-container:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile-name-nav {
    font-size: 14px;
    font-weight: 600;
    color: #FFF;
}

.profile-caret {
    font-size: 10px;
    color: #AAA;
    transition: transform 0.2s;
}

.profile-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 240px;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 0;
    box-shadow: 0 10px 35px rgba(0,0,0,0.9);
    z-index: 2500;
}

.dropdown-header {
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-profiles-list {
    display: flex;
    flex-direction: column;
}

.dropdown-profile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
    color: #DDD;
}

.dropdown-profile-item:hover {
    background: #282828;
    color: #FFF;
}

.dropdown-profile-item.active {
    font-weight: 700;
    color: #FFF;
    border-left: 3px solid var(--netflix-red);
}

.dropdown-profile-item .pin-lock-icon {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.7;
}

.dropdown-divider {
    height: 1px;
    background: #2A2A2A;
    margin: 8px 0;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: #CCC;
    padding: 9px 16px;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background: #282828;
    color: #FFF;
}

/* WHO IS WATCHING MODAL */
.who-is-watching-overlay {
    background: rgba(0, 0, 0, 0.95);
    z-index: 6000;
}

.who-card {
    text-align: center;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
}

.who-title {
    font-size: 42px;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.who-profiles-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.who-profile-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 14px;
    transition: transform 0.2s;
}

.who-profile-tile:hover {
    transform: scale(1.06);
}

.who-avatar-box {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.who-profile-tile:hover .who-avatar-box {
    border-color: #FFF;
}

.who-profile-name {
    font-size: 16px;
    color: #AAA;
    transition: color 0.2s;
}

.who-profile-tile:hover .who-profile-name {
    color: #FFF;
}

.who-lock-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.who-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-manage-profiles, .btn-close-who {
    background: transparent;
    border: 1px solid #666;
    color: #AAA;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 24px;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: border-color 0.2s, color 0.2s;
}

.btn-manage-profiles:hover, .btn-close-who:hover {
    border-color: #FFF;
    color: #FFF;
}

/* PIN & ADD PROFILE MODALS */
.pin-overlay, .add-profile-overlay {
    z-index: 7000;
}

.pin-card, .add-profile-card {
    background: #181818;
    padding: 35px 30px;
    border-radius: 8px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
}

.pin-avatar-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.pin-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pin-subtitle {
    font-size: 14px;
    color: #AAA;
    margin-bottom: 25px;
}

.pin-inputs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.pin-digit {
    width: 52px;
    height: 60px;
    background: #111;
    border: 1px solid #444;
    border-radius: 6px;
    text-align: center;
    font-size: 28px;
    color: #FFF;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pin-digit:focus {
    border-color: var(--netflix-red);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

.pin-error {
    color: #FF4444;
    font-size: 14px;
    font-weight: 600;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.add-profile-card {
    text-align: left;
}

.add-profile-card h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.add-sub {
    font-size: 13px;
    color: #AAA;
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #CCC;
}

.form-group input {
    width: 100%;
    background: #242424;
    border: 1px solid #444;
    color: #FFF;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--netflix-red);
}

.avatar-selector {
    display: flex;
    gap: 10px;
}

.avatar-option {
    flex: 1;
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s, border-color 0.15s;
}

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

.avatar-option.selected {
    border-color: #FFF;
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.avatar-option[data-color="red"] { background: #E50914; color: #FFF; }
.avatar-option[data-color="blue"] { background: #0071EB; color: #FFF; }
.avatar-option[data-color="green"] { background: #229954; color: #FFF; }
.avatar-option[data-color="yellow"] { background: #D4AC0D; color: #FFF; }
.avatar-option[data-color="purple"] { background: #8E44AD; color: #FFF; }

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-save-profile {
    flex: 1;
    background: var(--netflix-red);
    color: #FFF;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save-profile:hover {
    background: var(--netflix-red-hover);
}

.btn-cancel {
    background: transparent;
    border: 1px solid #555;
    color: #AAA;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.btn-cancel:hover {
    color: #FFF;
    border-color: #FFF;
}

/* RESUME CHOICE MODAL */
.resume-choice-overlay {
    z-index: 6500;
}

.resume-choice-card {
    background: #181818;
    border-radius: 10px;
    padding: 24px;
    max-width: 480px;
    width: 92%;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInScale 0.25s ease;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.resume-choice-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.resume-choice-poster-box {
    width: 80px;
    height: 115px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    background: #222;
}

.resume-choice-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.rc-title {
    font-size: 19px;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-subtitle {
    font-size: 13px;
    color: #AAA;
    margin-bottom: 8px;
}

.rc-progress-badge {
    display: inline-block;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.5);
    color: #FFF;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.resume-choice-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-rc-primary {
    background: var(--netflix-red);
    color: #FFF;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
}

.btn-rc-primary:hover {
    background: var(--netflix-red-hover);
    transform: translateY(-1px);
}

.rc-nav-row {
    display: flex;
    gap: 10px;
}

.btn-rc-secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s;
}

.btn-rc-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #FFF;
}

.btn-rc-link {
    background: transparent;
    color: #888;
    border: none;
    padding: 8px;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s;
}

.btn-rc-link:hover {
    color: #FFF;
}

/* ===================================================
   BOMBUJ-STYLE CATALOG VIEW & PAGINATION
   =================================================== */
.catalog-view {
    padding: 85px 4% 60px 4%;
    min-height: 85vh;
    background: #141414;
}

.catalog-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.catalog-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

#catalog-title {
    font-size: 30px;
    font-weight: 800;
    color: #FFF;
    letter-spacing: -0.5px;
}

.catalog-count-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #AAA;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.btn-catalog-back {
    background: rgba(255, 255, 255, 0.1);
    color: #EEE;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-catalog-back:hover {
    background: #FFF;
    color: #000;
    border-color: #FFF;
}

/* Bombuj Filter Toolbar */
.catalog-toolbar {
    background: #222222;
    border: 1px solid #383838;
    border-radius: 4px;
    padding: 12px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.toolbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-label {
    font-size: 14px;
    font-weight: 700;
    color: #BBB;
}

.toolbar-select {
    background: #181818;
    color: #FFF;
    border: 1px solid #484848;
    border-radius: 4px;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.toolbar-select:hover, .toolbar-select:focus {
    border-color: #888;
    background: #202020;
}

/* Bombuj Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

/* Bombuj Photo Card Design */
.bombuj-card {
    background: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bombuj-card:hover {
    transform: translateY(-4px);
    border-color: #666;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

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

.bombuj-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bombuj-card:hover .bombuj-poster-box img {
    transform: scale(1.04);
}

.bombuj-card-footer {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    justify-content: space-between;
    background: #1e1e1e;
}

.bombuj-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #FFF;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.bombuj-badges-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge-bombuj-lang {
    background: #1b8247; /* Authentic Bombuj green */
    color: #FFF;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-bombuj-lang.tit {
    background: #cfa219;
    color: #111;
}

.badge-bombuj-csfd {
    background: #941d1e; /* Authentic Bombuj ČSFD red */
    color: #FFF;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

/* Pagination matching Bombuj screenshot */
.catalog-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0 30px 0;
    border-top: 1px solid #2a2a2a;
    margin-top: 24px;
}

.catalog-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    background: #2b2b2b;
    border: 1px solid #444;
    color: #CCC;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.page-btn:hover {
    background: #3c3c3c;
    border-color: #666;
    color: #FFF;
}

.page-btn.active {
    background: #151515;
    border-color: #888;
    color: #FFF;
    font-weight: 800;
    box-shadow: inset 0 0 4px rgba(255,255,255,0.2);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #202020;
    border-color: #333;
}

.catalog-page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jump-label {
    font-size: 13px;
    color: #888;
}

.jump-select {
    min-width: 70px;
}

@media (max-width: 768px) {
    .catalog-view {
        padding: 70px 3% 40px 3%;
    }
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
    .bombuj-card-footer {
        padding: 8px;
    }
    .bombuj-card-title {
        font-size: 12px;
        min-height: 32px;
    }
    .badge-bombuj-lang {
        font-size: 10px;
        padding: 1px 5px;
    }
    .badge-bombuj-csfd {
        font-size: 11px;
        padding: 1px 6px;
    }
    .catalog-toolbar {
        gap: 10px;
        padding: 10px;
    }
    .toolbar-item {
        width: 100%;
        justify-content: space-between;
    }
    .toolbar-select {
        flex: 1;
    }
}
