/* =========================================================
   SELVA PRINT | TAMIL MOVIES
   V6 FULLY UPDATED STYLE.CSS (PORTRAIT + LANDSCAPE ZERO CROP FIX)

   Supports:
   - Mobile Portrait & Mobile Landscape (Zero Crop/Zoom on Rotate)
   - Tablet
   - Laptop/Desktop
   - Android TV / Google TV
   - Keyboard / TV remote focus
========================================================= */

/* =========================================================
   RESET
========================================================= */

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

html {
   scroll-behavior: smooth;
}

body {
   min-height: 100vh;
   font-family: "Poppins", sans-serif;
   background: #080808;
   color: #ffffff;
   overflow-x: hidden;
}

body.menu-open {
   overflow: hidden;
}

a {
   color: inherit;
   text-decoration: none;
}

button,
input {
   font: inherit;
}

button {
   cursor: pointer;
}

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

/* =========================================================
   ACCESSIBILITY
========================================================= */

.screen-reader-only {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   white-space: nowrap;
   border: 0;
   clip: rect(0, 0, 0, 0);
}

/* =========================================================
   SCROLL BAR
========================================================= */

::-webkit-scrollbar {
   width: 10px;
   height: 8px;
}

::-webkit-scrollbar-track {
   background: #111111;
}

::-webkit-scrollbar-thumb {
   background: #e50914;
   border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
   background: #ff2632;
}

/* =========================================================
   LOADER
========================================================= */

.loader {
   position: fixed;
   inset: 0;
   z-index: 999999;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 20px;
   background: #080808;
}

.loader.hidden {
   display: none;
}

.spinner {
   width: 64px;
   height: 64px;
   border: 6px solid #2c2c2c;
   border-top-color: #e50914;
   border-radius: 50%;
   animation: spinnerRotate 0.9s linear infinite;
}

.loader p {
   color: #bbbbbb;
   font-size: 17px;
}

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

/* =========================================================
   HEADER
========================================================= */

.header {
   position: fixed;
   top: 0;
   left: 0;
   z-index: 10000;

   width: 100%;
   min-height: 86px;

   display: grid;
   grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
   align-items: center;
   gap: 30px;

   padding: 14px 34px;

   background: rgba(9, 9, 9, 0.97);
   border-bottom: 1px solid rgba(255, 255, 255, 0.06);
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.42);
   backdrop-filter: blur(14px);
}

.header-top {
   min-width: 0;

   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 28px;
}

/* =========================================================
   LOGO
========================================================= */

.logo {
   min-width: 0;

   display: flex;
   align-items: center;
   gap: 13px;
}

.logo img {
   flex: 0 0 auto;

   width: 50px;
   height: 50px;

   border-radius: 50%;
   object-fit: cover;

   background: #161616;
   border: 2px solid rgba(255, 255, 255, 0.12);
}

.logo h1 {
   overflow: hidden;

   font-size: clamp(20px, 2vw, 29px);
   font-weight: 750;
   line-height: 1.2;
   letter-spacing: 0.2px;
   white-space: nowrap;
   text-overflow: ellipsis;
}

/* =========================================================
   DESKTOP MENU
========================================================= */

.desktop-menu {
   flex: 0 0 auto;

   display: flex;
   align-items: center;
   gap: 28px;
}

.desktop-menu a {
   position: relative;

   padding: 10px 2px;

   color: #d4d4d4;
   font-size: 16px;
   font-weight: 500;

   transition:
      color 0.22s ease,
      transform 0.22s ease;
}

.desktop-menu a::after {
   content: "";

   position: absolute;
   left: 0;
   bottom: 2px;

   width: 0;
   height: 2px;

   background: #e50914;

   transition: width 0.22s ease;
}

.desktop-menu a:hover {
   color: #ffffff;
}

.desktop-menu a:hover::after {
   width: 100%;
}

/* =========================================================
   SEARCH
========================================================= */

.search-area {
   width: 100%;
}

.search-area input {
   width: 100%;
   height: 48px;

   padding: 0 20px;

   color: #ffffff;
   background: #1a1a1a;

   border: 1px solid #303030;
   border-radius: 26px;
   outline: none;

   font-size: 15px;

   transition:
      border-color 0.22s ease,
      background 0.22s ease,
      box-shadow 0.22s ease;
}

.search-area input::placeholder {
   color: #999999;
}

.search-area input:hover {
   background: #202020;
}

.search-area input:focus {
   background: #202020;
   border-color: #00e5ff;
   box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-btn {
   display: none;

   flex: 0 0 auto;

   width: 46px;
   height: 46px;

   align-items: center;
   justify-content: center;

   color: #ffffff;
   background: #1b1b1b;

   border: 1px solid #333333;
   border-radius: 10px;

   font-size: 27px;
   line-height: 1;
}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
   display: none;

   position: fixed;
   top: 82px;
   right: 18px;
   z-index: 20000;

   width: 210px;

   padding: 10px;

   background: #171717;
   border: 1px solid #343434;
   border-radius: 14px;
   box-shadow: 0 16px 38px rgba(0, 0, 0, 0.65);
}

.mobile-menu.show {
   display: block;
   animation: mobileMenuOpen 0.2s ease;
}

.mobile-menu a {
   display: block;

   padding: 14px 15px;

   color: #ffffff;
   border-radius: 9px;

   font-size: 16px;
   font-weight: 500;

   transition:
      background 0.2s ease,
      transform 0.2s ease;
}

.mobile-menu a:hover {
   background: #2a2a2a;
}

.mobile-menu a + a {
   margin-top: 4px;
}

@keyframes mobileMenuOpen {
   from {
      opacity: 0;
      transform: translateY(-8px) scale(0.97);
   }

   to {
      opacity: 1;
      transform: translateY(0) scale(1);
   }
}

/* =========================================================
   OTT HERO SLIDER
========================================================= */

.hero {
   position: relative;
   isolation: isolate;
   overflow: hidden;

   min-height: 750px;
   margin-top: 86px;

   display: flex;
   align-items: flex-end;

   background:
      linear-gradient(
         90deg,
         rgba(0, 0, 0, 0.78) 0%,
         rgba(0, 0, 0, 0.42) 48%,
         rgba(0, 0, 0, 0.12) 100%
      ),
      url("assets/default-poster.png") center / cover no-repeat;

   transition: background-image 0.45s ease;
}

.hero-background-overlay {
   position: absolute;
   inset: 0;
   z-index: -1;

   background:
      linear-gradient(
         to top,
         rgba(8, 8, 8, 0.85) 0%,
         rgba(8, 8, 8, 0.55) 22%,
         rgba(8, 8, 8, 0.1) 55%,
         rgba(8, 8, 8, 0.06) 100%
      );
}

.hero-content {
   position: relative;
   z-index: 4;

   width: min(760px, calc(100% - 160px));

   padding: 66px 96px 68px;
}

.hero-badge {
   display: inline-flex;
   align-items: center;

   margin-bottom: 18px;
   padding: 8px 17px;

   color: #ffffff;
   background: #e50914;
   border-radius: 24px;

   font-size: 14px;
   font-weight: 650;
}

.hero h2 {
   margin-bottom: 16px;

   font-size: clamp(38px, 5vw, 70px);
   font-weight: 800;
   line-height: 1.08;

   text-shadow: 0 4px 16px rgba(0, 0, 0, 0.75);
}

.hero-meta {
   margin-bottom: 13px;

   color: #ffbd2f;
   font-size: 16px;
   font-weight: 600;
}

#heroDescription {
   max-width: 680px;
   margin-bottom: 28px;

   color: #dedede;
   font-size: 17px;
   line-height: 1.75;

   text-shadow: 0 2px 9px rgba(0, 0, 0, 0.8);
}

/* =========================================================
   HERO BUTTONS
========================================================= */

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

.hero-watch,
.hero-download {
   min-width: 165px;
   height: 52px;

   display: inline-flex;
   align-items: center;
   justify-content: center;

   padding: 0 24px;

   border-radius: 10px;

   font-size: 16px;
   font-weight: 650;

   transition:
      background 0.22s ease,
      transform 0.22s ease,
      box-shadow 0.22s ease;
}

.hero-watch {
   background: #e50914;
}

.hero-watch:hover {
   background: #ff1d29;
   transform: translateY(-2px);
}

.hero-download {
   background: rgba(55, 55, 55, 0.92);
   border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-download:hover {
   background: #4b4b4b;
   transform: translateY(-2px);
}

/* =========================================================
   HERO ARROWS
========================================================= */

.hero-arrow {
   position: absolute;
   top: 50%;
   z-index: 10;

   width: 58px;
   height: 58px;

   display: flex;
   align-items: center;
   justify-content: center;

   color: #ffffff;
   background: rgba(12, 12, 12, 0.68);

   border: 1px solid rgba(255, 255, 255, 0.22);
   border-radius: 50%;

   font-size: 28px;

   transform: translateY(-50%);

   transition:
      background 0.2s ease,
      transform 0.2s ease,
      opacity 0.2s ease;
}

.hero-arrow:hover {
   background: #e50914;
   transform: translateY(-50%) scale(1.08);
}

.hero-left {
   left: 22px;
}

.hero-right {
   right: 22px;
}

/* =========================================================
   HERO DOTS
========================================================= */

.hero-dots {
   min-height: 12px;
   margin-top: 27px;

   display: flex;
   align-items: center;
   gap: 9px;
}

.hero-dot {
   width: 10px;
   height: 10px;

   padding: 0;

   background: rgba(255, 255, 255, 0.42);
   border: none;
   border-radius: 50%;

   transition:
      width 0.22s ease,
      background 0.22s ease;
}

.hero-dot.active {
   width: 28px;
   background: #e50914;
   border-radius: 10px;
}

/* =========================================================
   CATEGORY FILTER
========================================================= */

.category-section {
   position: relative;
   z-index: 20;

   padding: 22px 34px;

   background: #101010;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-scroll {
   display: flex;
   align-items: center;
   gap: 12px;

   overflow-x: auto;
   overscroll-behavior-inline: contain;
   scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
   display: none;
}

.category {
   flex: 0 0 auto;

   min-width: 82px;
   height: 42px;

   padding: 0 18px;

   color: #ffffff;
   background: #222222;

   border: 1px solid #363636;
   border-radius: 24px;

   font-size: 14px;
   font-weight: 550;
   white-space: nowrap;

   transition:
      background 0.2s ease,
      border-color 0.2s ease,
      transform 0.2s ease;
}

.category:hover,
.category.active {
   background: #e50914;
   border-color: #e50914;
}

/* =========================================================
   MOVIES SECTION
========================================================= */

.movies-section {
   min-height: 500px;
   padding-bottom: 30px;
}

.section-title {
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   gap: 25px;

   padding: 38px 34px 22px;
}

.section-title h2 {
   margin-bottom: 7px;

   font-size: clamp(27px, 3vw, 38px);
   line-height: 1.2;
}

.section-title p {
   color: #a9a9a9;
   font-size: 15px;
}

.movie-count {
   flex: 0 0 auto;
   color: #cccccc !important;
   font-weight: 550;
}

/* =========================================================
   MOVIE GRID
========================================================= */

.movie-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
   gap: 28px;

   padding: 8px 34px 45px;
}

/* =========================================================
   MOVIE CARD (NO CROP POSTER)
========================================================= */

.movie-card {
   position: relative;
   overflow: hidden;

   min-width: 0;

   background: #171717;
   border: 1px solid #252525;
   border-radius: 15px;
   box-shadow: 0 7px 22px rgba(0, 0, 0, 0.38);

   cursor: pointer;

   transition:
      transform 0.24s ease,
      border-color 0.24s ease,
      box-shadow 0.24s ease;
}

.movie-card:hover {
   transform: translateY(-7px);
   border-color: #404040;
   box-shadow: 0 16px 34px rgba(0, 0, 0, 0.58);
}

.movie-poster-wrap {
   position: relative;
   overflow: hidden;

   width: 100%;
   aspect-ratio: 2 / 3;

   background: #101010;
}

.movie-card img,
.movie-poster {
   width: 100%;
   height: 100%;

   object-fit: contain;
   background: #101010;

   transition: transform 0.28s ease;
}

.movie-card:hover img {
   transform: scale(1.025);
}

.movie-featured-label {
   position: absolute;
   top: 12px;
   left: 12px;

   padding: 6px 11px;

   color: #ffffff;
   background: rgba(229, 9, 20, 0.93);
   border-radius: 16px;

   font-size: 12px;
   font-weight: 650;
   z-index: 5;
}

.movie-info {
   padding: 16px;
}

.movie-title {
   min-height: 56px;

   display: flex;
   align-items: center;
   justify-content: center;

   overflow-wrap: anywhere;

   text-align: center;
   font-size: 19px;
   font-weight: 650;
   line-height: 1.45;
}

.movie-category {
   margin-top: 7px;

   color: #a9a9a9;
   text-align: center;
   font-size: 13px;
}

/* =========================================================
   MOVIE CARD BUTTONS
========================================================= */

.movie-buttons {
   display: flex;
   gap: 9px;

   margin-top: 15px;
}

.watch-btn,
.download-btn {
   flex: 1;
   min-width: 0;
   height: 46px;

   display: flex;
   align-items: center;
   justify-content: center;

   padding: 0 9px;

   color: #ffffff;
   border-radius: 8px;

   text-align: center;
   font-size: 14px;
   font-weight: 620;
   white-space: nowrap;

   transition:
      background 0.2s ease,
      transform 0.2s ease;
}

.watch-btn {
   background: #1976d2;
}

.watch-btn:hover {
   background: #2196f3;
}

.download-btn {
   background: #218838;
}

.download-btn:hover {
   background: #28a745;
}

/* =========================================================
   EMPTY / ERROR MESSAGE
========================================================= */

.empty-message,
.error-message {
   grid-column: 1 / -1;

   padding: 70px 20px;

   color: #c3c3c3;
   text-align: center;
   font-size: 20px;
}

/* =========================================================
   SCROLL TO TOP
========================================================= */

.scroll-top {
   position: fixed;
   right: 24px;
   bottom: 24px;
   z-index: 9000;

   width: 54px;
   height: 54px;

   display: none;
   align-items: center;
   justify-content: center;

   color: #ffffff;
   background: #e50914;

   border: none;
   border-radius: 50%;
   box-shadow: 0 9px 26px rgba(0, 0, 0, 0.45);

   font-size: 20px;
}

.scroll-top.show {
   display: flex;
}

.scroll-top:hover {
   background: #ff1e2a;
   transform: translateY(-3px);
}

/* =========================================================
   FOOTER
========================================================= */

footer {
   margin-top: 30px;

   background: #101010;
   border-top: 1px solid #272727;
}

.footer-content {
   max-width: 1600px;
   margin: 0 auto;
   padding: 38px 34px;

   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 30px;
}

.footer-content h3 {
   margin-bottom: 8px;
   font-size: 23px;
}

.footer-content p {
   color: #9f9f9f;
   font-size: 14px;
   line-height: 1.8;
}

.footer-right {
   text-align: right;
}

/* =========================================================
   FOCUS — KEYBOARD / TV REMOTE
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
.movie-card:focus-visible {
   outline: 4px solid #00e5ff;
   outline-offset: 4px;
   box-shadow: 0 0 24px rgba(0, 229, 255, 0.5);
}

.movie-card:focus-visible {
   z-index: 5;
   transform: scale(1.035);
}

.category:focus-visible,
.hero-dot:focus-visible {
   transform: scale(1.07);
}

/* =========================================================
   CARD ANIMATION
========================================================= */

.fade-in {
   animation: fadeInCard 0.38s ease both;
}

@keyframes fadeInCard {
   from {
      opacity: 0;
      transform: translateY(16px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 769px) and (max-width: 1100px) {

   .header {
      grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
      gap: 18px;
      padding-inline: 22px;
   }

   .desktop-menu {
      gap: 17px;
   }

   .desktop-menu a {
      font-size: 14px;
   }

   .logo h1 {
      font-size: 21px;
   }

   .hero {
      min-height: 660px;
   }

   .hero-content {
      width: min(680px, calc(100% - 130px));
      padding: 55px 88px;
   }

   .movie-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 22px;
      padding-inline: 24px;
   }
}

/* =========================================================
   MOBILE PORTRAIT (ZERO CROP HERO FIX)
========================================================= */

@media (max-width: 768px) {

   .header {
      min-height: 132px;

      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 10px;

      padding: 12px 0 14px;
   }

   .header-top {
      width: 100%;
      min-height: 48px;

      padding: 0 17px;

      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
   }

   .logo {
      max-width: calc(100% - 58px);
      gap: 9px;
   }

   .logo img {
      width: 39px;
      height: 39px;
   }

   .logo h1 {
      font-size: clamp(15px, 4.3vw, 20px);
      line-height: 1.2;
      white-space: normal;
   }

   .desktop-menu {
      display: none;
   }

   .menu-btn {
      display: flex;
   }

   .search-area {
      width: auto;
      margin-left: 20px;
      margin-right: 28px;
   }

   .search-area input {
      height: 43px;
      padding-inline: 17px;

      border-radius: 22px;

      font-size: 14px;
   }

   .mobile-menu {
      top: 66px;
      right: 17px;
   }

   /* HERO MOBILE PORTRAIT */

   .hero {
      min-height: auto;
      margin-top: 132px;

      display: flex;
      flex-direction: column;
      justify-content: flex-end;

      background-size: 100% auto !important;
      background-position: top center !important;
      background-repeat: no-repeat !important;
      background-color: #080808;
   }

   .hero-background-overlay {
      display: none;
   }

   .hero-content {
      width: 100%;
      margin: 0;

      padding: 52vw 18px 25px 18px;

      background: linear-gradient(
         to top,
         rgba(8, 8, 8, 1) 0%,
         rgba(8, 8, 8, 0.98) 65%,
         rgba(8, 8, 8, 0.5) 88%,
         rgba(8, 8, 8, 0) 100%
      );
   }

   .hero-badge {
      margin-bottom: 12px;
      padding: 7px 13px;

      font-size: 12px;
   }

   .hero h2 {
      margin-bottom: 11px;

      font-size: clamp(29px, 9vw, 43px);
      line-height: 1.12;
   }

   .hero-meta {
      margin-bottom: 9px;
      font-size: 13px;
   }

   #heroDescription {
      display: -webkit-box;
      overflow: hidden;

      margin-bottom: 20px;

      font-size: 14px;
      line-height: 1.6;

      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
   }

   .hero-buttons {
      flex-direction: column;
      gap: 11px;
   }

   .hero-watch,
   .hero-download {
      width: 100%;
      min-width: 0;
      height: 54px;

      font-size: 16px;
   }

   .hero-arrow {
      top: 25vw;

      width: 42px;
      height: 42px;

      font-size: 20px;
   }

   .hero-left {
      left: 7px;
   }

   .hero-right {
      right: 7px;
   }

   .hero-dots {
      justify-content: center;
      margin-top: 21px;
   }

   /* CATEGORIES MOBILE */

   .category-section {
      padding: 16px 15px;
   }

   .category {
      min-width: 76px;
      height: 39px;

      padding-inline: 15px;

      font-size: 13px;
   }

   /* MOVIES MOBILE */

   .section-title {
      align-items: flex-start;
      flex-direction: column;
      gap: 9px;

      padding: 27px 20px 17px;
   }

   .section-title h2 {
      font-size: 26px;
   }

   .section-title p {
      font-size: 13px;
   }

   .movie-count {
      font-size: 13px !important;
   }

   .movie-grid {
      grid-template-columns: minmax(0, 340px);
      justify-content: center;

      gap: 22px;

      padding: 5px 18px 36px;
   }

   .movie-card {
      width: 100%;
   }

   .movie-info {
      padding: 16px;
   }

   .movie-title {
      min-height: auto;
      font-size: 20px;
   }

   .movie-buttons {
      gap: 10px;
   }

   .watch-btn,
   .download-btn {
      height: 50px;
      font-size: 14px;
   }

   /* FOOTER MOBILE */

   .footer-content {
      align-items: flex-start;
      flex-direction: column;

      padding: 30px 20px;
   }

   .footer-right {
      text-align: left;
   }

   .scroll-top {
      right: 17px;
      bottom: 17px;

      width: 49px;
      height: 49px;
   }
}

/* =========================================================
   MOBILE LANDSCAPE ROTATE FIX (ZERO CROP & ZERO ZOOM)
========================================================= */

@media (max-height: 500px) and (orientation: landscape), 
       (max-width: 950px) and (orientation: landscape) {

   .header {
      min-height: 70px;
      padding: 10px 20px;
      grid-template-columns: 1fr 280px;
   }

   .header-top {
      width: 100%;
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
   }

   .desktop-menu {
      display: none;
   }

   .menu-btn {
      display: flex;
   }

   .search-area {
      width: 100%;
      min-width: 0;
   }

   .search-area input {
      height: 42px;
   }

   .mobile-menu {
      top: 66px;
      right: 17px;
   }

   .hero {
      min-height: auto !important;
      margin-top: 70px;

      display: flex;
      flex-direction: column;
      justify-content: flex-end;

      /* Keep entire banner visible without zooming or cropping sides */
      background-size: 100% auto !important;
      background-position: top center !important;
      background-repeat: no-repeat !important;
      background-color: #080808;
   }

   .hero-background-overlay {
      display: none;
   }

   .hero-content {
      width: 100%;
      margin: 0;

      /* Landscape top spacing so top title banner is untouched */
      padding: 42vw 24px 28px 24px;

      background: linear-gradient(
         to top,
         rgba(8, 8, 8, 1) 0%,
         rgba(8, 8, 8, 0.98) 60%,
         rgba(8, 8, 8, 0.4) 85%,
         rgba(8, 8, 8, 0) 100%
      );
   }

   .hero h2 {
      font-size: clamp(26px, 5vw, 40px);
      margin-bottom: 10px;
   }

   #heroDescription {
      font-size: 14px;
      line-height: 1.5;
      margin-bottom: 18px;
   }

   .hero-buttons {
      flex-direction: row;
      gap: 12px;
   }

   .hero-watch,
   .hero-download {
      min-width: 140px;
      height: 46px;
      font-size: 14px;
   }

   .hero-arrow {
      top: 20vw;
      width: 44px;
      height: 44px;
      font-size: 22px;
   }

   .movie-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 20px;
      padding: 10px 20px 40px;
   }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

   .header-top {
      padding-inline: 13px;
   }

   .logo h1 {
      font-size: 15px;
   }

   .logo img {
      width: 36px;
      height: 36px;
   }

   .menu-btn {
      width: 42px;
      height: 42px;
      font-size: 24px;
   }

   .search-area {
      margin-left: 17px;
      margin-right: 24px;
   }

   .hero h2 {
      font-size: 29px;
   }

   .hero-arrow {
      width: 38px;
      height: 38px;
   }

   .watch-btn,
   .download-btn {
      font-size: 13px;
   }
}

/* =========================================================
   LARGE TV / 4K DISPLAY
========================================================= */

@media (min-width: 1600px) {

   .header {
      min-height: 104px;

      grid-template-columns: minmax(0, 1fr) 540px;
      gap: 50px;

      padding: 18px 50px;
   }

   .logo img {
      width: 62px;
      height: 62px;
   }

   .logo h1 {
      font-size: 38px;
   }

   .desktop-menu {
      gap: 40px;
   }

   .desktop-menu a {
      font-size: 20px;
   }

   .search-area input {
      height: 58px;

      padding-inline: 25px;

      font-size: 19px;
   }

   .hero {
      min-height: 910px;
      margin-top: 104px;
   }

   .hero-content {
      width: min(1000px, calc(100% - 230px));
      padding: 90px 105px;
   }

   .hero-badge {
      font-size: 18px;
   }

   .hero h2 {
      font-size: 84px;
   }

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

   #heroDescription {
      max-width: 900px;
      font-size: 23px;
      line-height: 1.7;
   }

   .hero-watch,
   .hero-download {
      min-width: 220px;
      height: 66px;

      font-size: 21px;
   }

   .hero-arrow {
      width: 74px;
      height: 74px;

      font-size: 37px;
   }

   .hero-left {
      left: 34px;
   }

   .hero-right {
      right: 34px;
   }

   .hero-dot {
      width: 14px;
      height: 14px;
   }

   .hero-dot.active {
      width: 38px;
   }

   .category-section {
      padding: 28px 48px;
   }

   .category {
      min-width: 110px;
      height: 54px;

      padding-inline: 25px;

      font-size: 18px;
   }

   .section-title {
      padding: 52px 48px 30px;
   }

   .section-title h2 {
      font-size: 48px;
   }

   .section-title p,
   .movie-count {
      font-size: 19px !important;
   }

   .movie-grid {
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 38px;

      padding: 10px 48px 60px;
   }

   .movie-card {
      border-radius: 19px;
   }

   .movie-info {
      padding: 21px;
   }

   .movie-title {
      min-height: 76px;
      font-size: 25px;
   }

   .movie-category {
      font-size: 17px;
   }

   .watch-btn,
   .download-btn {
      height: 60px;
      font-size: 18px;
   }

   .footer-content {
      padding: 52px 48px;
   }

   .footer-content h3 {
      font-size: 31px;
   }

   .footer-content p {
      font-size: 18px;
   }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

   *,
   *::before,
   *::after {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
   }
}

/* =========================================================
   RESIZE-SAFE NAVIGATION OVERRIDE

   A laptop browser can become narrow while remaining landscape.
   Keep the desktop links from squeezing beside the search field:
   collapse the navigation whenever the available viewport is
   tablet/laptop width, regardless of orientation.
========================================================= */

@media (max-width: 1100px) {
   .header {
      min-height: 132px !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 10px !important;
      padding: 12px 0 14px !important;
   }

   .header-top {
      width: 100% !important;
      min-height: 48px !important;
      min-width: 0 !important;
      padding: 0 17px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 12px !important;
   }

   .logo {
      min-width: 0 !important;
      max-width: calc(100% - 58px) !important;
      gap: 9px !important;
   }

   .logo img {
      width: 39px !important;
      height: 39px !important;
   }

   .logo h1 {
      min-width: 0 !important;
      overflow: hidden !important;
      font-size: clamp(15px, 4.3vw, 20px) !important;
      line-height: 1.2 !important;
      white-space: normal !important;
      text-overflow: ellipsis !important;
   }

   .desktop-menu {
      display: none !important;
   }

   .menu-btn {
      display: flex !important;
      flex: 0 0 auto !important;
      visibility: visible !important;
      opacity: 1 !important;
   }

   .search-area {
      width: auto !important;
      margin-left: 20px !important;
      margin-right: 28px !important;
   }

   .search-area input {
      width: 100% !important;
      height: 43px !important;
      font-size: 14px !important;
   }

   .mobile-menu {
      top: 66px !important;
      right: 17px !important;
   }

   .hero {
      margin-top: 132px !important;
   }
}

/* =========================================================
   MOBILE TOUCH FIX
   Remove browser/WebView blue touch highlight
   without affecting TV remote focus
========================================================= */

@media (max-width: 768px) {

   a,
   button,
   .movie-card,
   .category,
   .hero-arrow,
   .hero-dot {
      -webkit-tap-highlight-color: transparent;
      -webkit-touch-callout: none;
   }

   a:active,
   button:active,
   .movie-card:active,
   .category:active,
   .hero-arrow:active,
   .hero-dot:active {
      outline: none !important;
      box-shadow: none !important;
   }

   a:focus:not(:focus-visible),
   button:focus:not(:focus-visible),
   .movie-card:focus:not(:focus-visible),
   .category:focus:not(:focus-visible) {
      outline: none;
      box-shadow: none;
   }
}
