/* ==========================================================================
   Vibe Media — Responsive Adaptations
   Breakpoints: 1440px (Wide), 1366px (15.4" Laptop), 1100px (Compact), 900px (Tablet), 600px (Mobile)
   ========================================================================== */

/* Large screens (>= 1440px): 6-7 items per row */
@media (min-width: 1440px) {
  .catalogue-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 22px;
  }
}

/* 15.4-inch and 15.6-inch Laptops (<= 1366px and 1920x1080 @ 125%/150% scaling) */
@media (max-width: 1366px) {
  :root {
    --sidebar-width: 220px;
    --topbar-height: 70px;
  }

  .sidebar {
    left: 12px;
    top: 12px;
    height: calc(100vh - 24px);
  }

  .main-wrapper {
    margin-left: calc(var(--sidebar-width) + 24px);
    width: calc(100% - (var(--sidebar-width) + 24px));
    max-width: calc(100% - (var(--sidebar-width) + 24px));
  }

  .content-body {
    padding: 20px 24px;
  }

  .topbar {
    padding: 0 24px 0 16px;
  }

  .hero-slider-container {
    height: 380px;
    margin-bottom: 28px;
  }

  .hero-content {
    padding: 32px 76px;
    max-width: 580px;
  }

  .hero-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .hero-synopsis {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 20px;
  }

  .movie-card {
    flex: 0 0 160px;
    width: 160px;
  }

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

/* Compact Laptops / Small Desktop (<= 1100px) */
@media (max-width: 1100px) {
  :root {
    --sidebar-width: 200px;
  }

  .sidebar {
    left: 10px;
    top: 10px;
    height: calc(100vh - 20px);
  }

  .main-wrapper {
    margin-left: calc(var(--sidebar-width) + 18px);
    width: calc(100% - (var(--sidebar-width) + 18px));
    max-width: calc(100% - (var(--sidebar-width) + 18px));
  }
  
  .content-body {
    padding: 18px 20px;
  }

  .topbar {
    padding: 0 20px 0 14px;
  }
  
  .hero-slider-container {
    height: 340px;
    margin-bottom: 24px;
  }
  
  .hero-title {
    font-size: 26px;
  }

  .hero-content {
    padding: 26px 70px;
    max-width: 520px;
  }
  
  .hero-nav-arrow {
    width: 38px;
    height: 38px;
  }
  .hero-nav-arrow.prev { left: 16px; }
  .hero-nav-arrow.next { right: 16px; }

  .movie-card {
    flex: 0 0 145px;
    width: 145px;
  }

  .catalogue-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 14px;
  }
}

/* Tablets & Mobile Navigation Drawer (<= 900px) */
@media (max-width: 900px) {
  :root {
    --sidebar-width: 0px;
    --topbar-height: 60px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100vh;
    transform: translateX(-110%);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
    z-index: 1000;
    transition: transform var(--transition-smooth);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .main-wrapper {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
  }

  .topbar {
    padding: 0 16px;
    height: 60px;
    gap: 12px;
  }

  .topbar-left {
    max-width: none;
    flex: 1;
    min-width: 0;
    gap: 12px;
  }

  .search-wrapper {
    flex: 1;
    min-width: 0;
  }

  .search-autocomplete-dropdown {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: 68vh;
    z-index: 1001;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  }

  .content-body {
    padding: 16px 18px 60px 18px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .hero-slider-container {
    height: 320px;
    margin-bottom: 22px;
  }

  .hero-content {
    padding: 24px 28px;
    max-width: 100%;
  }
  
  .hero-nav-arrow {
    width: 36px;
    height: 36px;
  }
  .hero-nav-arrow.prev { left: 12px; }
  .hero-nav-arrow.next { right: 12px; }

  .hero-title {
    font-size: 24px;
  }

  .hero-synopsis {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 13px;
    margin-bottom: 16px;
  }

  .catalogue-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
  }

  .movie-card {
    flex: 0 0 140px;
    width: 140px;
  }

  .server-status-pill {
    display: none;
  }
}

/* Tablet Portrait & Large Phones (<= 768px) */
@media (max-width: 768px) {
  :root {
    --topbar-height: 56px;
  }

  .topbar {
    padding: 0 14px;
    height: 56px;
    gap: 10px;
  }

  .topbar-left {
    gap: 10px;
  }

  .search-input {
    height: 38px;
    font-size: 13px;
    padding: 0 32px 0 36px;
  }

  .search-icon {
    left: 11px;
    width: 16px;
    height: 16px;
  }

  .search-clear-btn {
    right: 10px;
  }

  .topbar-right {
    gap: 10px;
  }

  .hero-slider-container {
    height: 280px;
  }

  .hero-content {
    padding: 20px 20px;
  }

  .hero-title {
    font-size: 21px;
  }

  /* Movie Detail Page on Tablet/Phone */
  .movie-detail-container {
    padding: 0;
  }

  .movie-backdrop-banner {
    height: 240px !important;
    margin-bottom: 0 !important;
  }

  .movie-detail-grid {
    flex-direction: column !important;
    align-items: center !important;
    margin-top: -70px !important;
    gap: 20px !important;
    text-align: center;
  }

  .movie-poster-box {
    flex: 0 0 160px !important;
    width: 160px !important;
    margin: 0 auto;
  }

  .movie-action-buttons {
    width: 100% !important;
    max-width: 280px;
    margin: 14px auto 0 auto !important;
  }

  .movie-meta-box {
    width: 100% !important;
    min-width: 0 !important;
  }

  .movie-badges-container {
    justify-content: center !important;
  }

  .movie-detail-title {
    font-size: 24px !important;
    margin-bottom: 12px !important;
  }

  .movie-ratings-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px !important;
    text-align: center;
  }

  .ratings-divider-col {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid var(--border-subtle) !important;
    padding-top: 10px !important;
  }

  .rating-stars-interactive {
    justify-content: center !important;
  }
}

/* Mobile Phones (<= 600px) */
@media (max-width: 600px) {
  .topbar {
    padding: 0 10px;
    gap: 8px;
  }

  .topbar-left {
    gap: 8px;
  }

  .mobile-menu-btn {
    width: 36px;
    height: 36px;
  }

  .topbar-right {
    gap: 6px;
  }

  .topbar-right .btn-primary {
    padding: 7px 12px;
    font-size: 12px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .profile-trigger .avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .content-body {
    padding: 12px 10px 80px 10px;
  }

  /* Hero Slider Mobile */
  .hero-slider-container {
    height: 250px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
  }

  .hero-content {
    padding: 16px 14px;
    max-width: 100%;
  }
  
  .hero-nav-arrow {
    display: none;
  }

  .hero-indicators {
    bottom: 10px;
    right: 12px;
  }

  .hero-title {
    font-size: 18px;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .hero-synopsis {
    display: none;
  }

  .hero-badges-row {
    gap: 5px;
    margin-bottom: 8px;
  }

  .hero-badge {
    padding: 2px 6px;
    font-size: 10px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn-primary {
    padding: 7px 14px;
    font-size: 12px;
  }

  .hero-actions .btn-secondary {
    padding: 7px 12px;
    font-size: 12px;
  }

  .hero-actions .btn-icon {
    width: 34px;
    height: 34px;
  }

  /* Carousels on Mobile */
  .carousel-wrapper {
    margin-bottom: 16px;
  }

  .carousel-header {
    margin-bottom: 6px;
  }

  .carousel-title {
    font-size: 15px;
  }

  .carousel-btn {
    display: none !important;
  }

  .carousel-track {
    gap: 10px;
    padding: 4px 2px 12px 2px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .carousel-track .movie-card {
    flex: 0 0 125px;
    width: 125px;
    scroll-snap-align: start;
  }

  /* Catalogue 2-Column Grid on Mobile */
  .catalogue-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .catalogue-grid .movie-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  .movie-card .card-body {
    padding: 6px 6px;
  }

  .movie-card .card-title {
    font-size: 12px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .movie-card .card-meta {
    font-size: 11px;
    margin-top: 2px;
  }

  /* Discover Toolbar on Mobile */
  .catalogue-toolbar {
    padding: 12px 10px;
    margin-bottom: 14px;
    border-radius: var(--radius-md);
  }

  .toolbar-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .toolbar-top > div {
    max-width: 100% !important;
    width: 100% !important;
  }

  .toolbar-controls {
    display: flex;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .select-control {
    flex: 1 1 calc(50% - 4px);
    min-width: 110px;
    font-size: 12px;
    height: 38px;
    padding: 6px 8px;
  }

  .view-mode-toggle {
    display: none;
  }

  .filter-pills-row {
    padding: 4px 0 6px 0;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-pill {
    padding: 5px 12px;
    font-size: 11px;
  }

  .movie-specs-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Player Header Topbar: Truncated titles and compact Next chip to prevent blowout */
  .player-topbar {
    gap: 8px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    overflow: hidden !important;
    padding: 0 4px !important;
    margin-bottom: 0 !important;
  }

  .player-title-info {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  .player-movie-title {
    font-size: 13px;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-topbar-right {
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .next-text-full {
    display: none !important;
  }

  .next-text-short {
    display: inline !important;
  }

  .player-next-chip {
    padding: 4px 10px !important;
    font-size: 11px !important;
    max-width: 80px !important;
    flex-shrink: 0 !important;
  }

  .player-movie-badge {
    display: none;
  }

  .volume-slider-box {
    display: none !important;
  }

  /* Player on Mobile: Floating Cinema Dock elevated in plain sight */
  .player-ui-overlay {
    padding: 8px 10px max(16px, env(safe-area-inset-bottom)) 10px !important;
    box-sizing: border-box !important;
    height: 100% !important;
    max-height: 100dvh !important;
  }

  .player-controls-bottom {
    padding: 14px 16px 14px 16px !important;
    width: calc(100% - 16px) !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    margin-bottom: max(48px, calc(env(safe-area-inset-bottom) + 36px)) !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg, rgba(20, 20, 36, 0.96) 0%, rgba(10, 10, 22, 0.98) 100%) !important;
    border: 1px solid rgba(169, 112, 255, 0.28) !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(169, 112, 255, 0.15) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    gap: 12px !important;
  }

  .scrub-container {
    height: 10px !important;
    padding: 6px 0 !important;
    margin: 0 0 4px 0 !important;
    background-clip: content-box !important;
    touch-action: none !important;
    cursor: pointer !important;
  }

  .scrub-fill {
    height: 10px !important;
    border-radius: 5px !important;
  }

  .scrub-handle {
    width: 20px !important;
    height: 20px !important;
  }

  /* Silky smooth left/right movement for controls */
  .player-buttons-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    overscroll-behavior-x: contain !important;
    scroll-behavior: smooth !important;
    scroll-padding: 0 8px !important;
    padding: 4px 4px 8px 4px !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--accent-purple) rgba(255, 255, 255, 0.08) !important;
  }

  .player-buttons-row::-webkit-scrollbar {
    height: 4px !important;
    display: block !important;
  }

  .player-buttons-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 4px !important;
  }

  .player-buttons-row::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent-purple), var(--secondary-blue)) !important;
    border-radius: 4px !important;
  }

  .player-left-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .player-right-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  .player-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 8px !important;
    color: #FFFFFF !important;
  }

  .player-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .player-time-display {
    font-size: 11px !important;
    white-space: nowrap !important;
    color: var(--text-muted) !important;
    margin: 0 4px !important;
    font-variant-numeric: tabular-nums !important;
  }

  #pip-btn {
    display: none !important;
  }

  #speed-select {
    display: none !important;
  }

  #rotate-btn {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(169, 112, 255, 0.2) !important;
    border: 1px solid rgba(169, 112, 255, 0.45) !important;
    border-radius: 8px !important;
    color: var(--accent-purple) !important;
    cursor: pointer !important;
  }

  #rotate-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  #player-settings-btn {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 8px !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
  }

  #player-settings-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  #fullscreen-btn {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(169, 112, 255, 0.2) !important;
    border: 1px solid rgba(169, 112, 255, 0.45) !important;
    border-radius: 8px !important;
    color: var(--accent-purple) !important;
    cursor: pointer !important;
  }

  #fullscreen-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .resume-modal {
    width: calc(100% - 24px) !important;
    max-width: 360px !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
    padding: 18px 16px !important;
  }

  #up-next-modal {
    width: calc(100% - 24px) !important;
    max-width: 360px !important;
    padding: 20px 16px !important;
  }
}

/* Compact Mobile Phones (<= 400px, e.g. iPhone SE, Galaxy Mini) */
@media (max-width: 400px) {
  .topbar {
    padding: 0 8px;
  }

  .topbar-left {
    gap: 6px;
  }

  .search-input {
    padding: 0 26px 0 28px;
    font-size: 12px;
    height: 36px;
  }

  .search-icon {
    left: 8px;
    width: 14px;
    height: 14px;
  }

  .topbar-right .icon-btn {
    display: none;
  }

  .topbar-right .btn-primary {
    padding: 6px 10px;
    font-size: 11px;
  }

  .hero-slider-container {
    height: 230px;
  }

  .hero-title {
    font-size: 17px;
  }

  .carousel-track .movie-card {
    flex: 0 0 115px;
    width: 115px;
  }

  #speed-select {
    display: none !important;
  }

  .player-time-display {
    font-size: 10px !important;
  }

  .player-left-group {
    gap: 4px !important;
  }

  .player-right-group {
    gap: 4px !important;
  }

  .player-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .player-btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  .player-controls-bottom {
    padding: 8px 10px max(20px, env(safe-area-inset-bottom)) 10px !important;
    gap: 8px !important;
  }
}

/* Backdrop Dimmer when Mobile Sidebar is Open */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(4px);
}

.sidebar-backdrop.active {
  display: block;
}

/* ==========================================================================
   Mobile Landscape & Rotated Screen Adaptation (Height <= 550px / Width <= 950px in Landscape)
   Ensures player fills 100dvh edge-to-edge without browser chrome clipping
   ========================================================================== */
@media (orientation: landscape) and (max-height: 550px), (max-width: 950px) and (orientation: landscape) {
  html, body {
    height: 100% !important;
    height: 100dvh !important;
    height: -webkit-fill-available !important;
    overflow: hidden !important;
    position: fixed !important;
    inset: 0 !important;
  }

  .player-container {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    height: -webkit-fill-available !important;
    z-index: 99999 !important;
    background: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .video-element {
    width: 100vw !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    height: -webkit-fill-available !important;
    object-fit: contain !important;
  }

  .player-ui-overlay {
    padding: 6px 16px !important;
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
    padding-top: max(6px, env(safe-area-inset-top)) !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
  }

  .player-topbar {
    height: 32px !important;
    margin-bottom: 0 !important;
  }

  .player-movie-title {
    font-size: 13px !important;
    max-width: 260px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .player-movie-badge {
    display: none !important;
  }

  .player-controls-bottom {
    padding: 8px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: linear-gradient(0deg, rgba(8, 8, 16, 0.96) 0%, rgba(14, 14, 26, 0.88) 75%, transparent 100%) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  .scrub-container {
    height: 7px !important;
    margin-bottom: 4px !important;
    cursor: pointer !important;
  }

  .player-buttons-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    padding-bottom: 2px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(169, 112, 255, 0.4) transparent !important;
  }

  .player-buttons-row::-webkit-scrollbar {
    height: 3px !important;
  }

  .player-buttons-row::-webkit-scrollbar-thumb {
    background: rgba(169, 112, 255, 0.4) !important;
    border-radius: 3px !important;
  }

  .player-left-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .player-right-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .player-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 6px !important;
    color: #FFFFFF !important;
  }

  .player-btn svg {
    width: 17px !important;
    height: 17px !important;
  }

  .volume-slider-box {
    display: none !important;
  }

  #pip-btn {
    display: none !important;
  }

  #speed-select {
    display: none !important;
  }

  .player-time-display {
    font-size: 11px !important;
    margin-left: 2px !important;
  }

  #rotate-btn {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(169, 112, 255, 0.22) !important;
    border: 1px solid rgba(169, 112, 255, 0.45) !important;
    border-radius: 6px !important;
    color: var(--accent-purple) !important;
    cursor: pointer !important;
  }

  #rotate-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  #player-settings-btn {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 6px !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
  }

  #player-settings-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  #fullscreen-btn {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(169, 112, 255, 0.22) !important;
    border: 1px solid rgba(169, 112, 255, 0.45) !important;
    border-radius: 6px !important;
    color: var(--accent-purple) !important;
    cursor: pointer !important;
  }

  #fullscreen-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .subtitles-menu,
  .player-settings-dropdown {
    position: fixed !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 72px) !important;
    right: 12px !important;
    left: auto !important;
    width: calc(100vw - 24px) !important;
    max-width: 320px !important;
    max-height: min(440px, 60vh) !important;
    overflow-y: auto !important;
    z-index: 999999 !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: var(--radius-md) !important;
    background: rgba(15, 17, 30, 0.98) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
  }
}

/* ==========================================================================
   Desktop, Laptop, TV & External Monitor Isolation:
   Rotate controls are strictly prohibited on non-phone/non-tablet devices
   ========================================================================== */
@media (hover: hover) and (pointer: fine), (min-width: 901px) {
  #rotate-btn,
  .rotate-btn,
  #setting-rotate-row {
    display: none !important;
  }
}


