:root {
  /* Brand Colors */
  --color-primary: #ff1212;
  --color-primary-hover: #ff2c2c;
  --color-primary-alt: #ff4545;
  
  /* Background Colors - адаптуються до теми */
  --color-bg: #fff;
  --color-bg-alt: #f1f1f1;
  --color-bg-secondary: #f2f2f2;
  --color-bg-tertiary: #f4f5f7;
  --color-bg-elevated: #fff;
  --color-bg-header: #222831;
  --color-bg-footer: #101010;
  --color-bg-code: #e8e8e8;
  --color-bg-neutral: #323232;
  
  /* Surface Colors - для карток, модалів */
  --color-surface: #fff;
  --color-surface-hover: #f4f5f7;
  
  /* Text Colors - адаптуються до теми */
  --color-text: #181818;
  --color-text-secondary: #333;
  --color-text-tertiary: #343434;
  --color-text-muted: #444;
  --color-text-subtle: #6e6e6e;
  --color-text-disabled: #aaa;
  
  /* Border Colors - адаптуються до теми */
  --color-border: #ddd;
  --color-border-subtle: #e0e0e0;
  --color-border-strong: #333;
  
  /* Interactive Elements */
  --color-button-bg: #444;
  --color-button-hover: #2b2b2b;
  --color-input-bg: #d3d3d3;
  
  /* Status Colors - не змінюються */
  --color-success: #46b450;
  --color-error: #dc3232;
  --color-warning: #f56e28;
  --color-info: #ffb900;
  
  /* Special Brand Colors */
  --color-netflix: #e50914;
  --color-bg-footer: #101010;
  
  /* Utility Colors */
  --color-white: #fff;
  --color-black: #000;
  
  /* Shadows & Overlays */
  --shadow-sm: 0 5px 25px 0 rgba(51, 51, 51, 0.2);
  --shadow-inset: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --overlay-hover: rgba(0, 0, 0, 0.2);
  --overlay-gradient-start: rgba(24, 24, 24, 0);
  --overlay-gradient-end: rgba(16, 16, 16, 1);
  --overlay-modal: rgba(34, 40, 49, 0.95);
  
  /* Netflix Button Effects */
  --netflix-glow-transparent: rgba(255, 166, 170, 0);
  --netflix-glow-medium: rgba(255, 166, 170, 0.5);
  --netflix-shadow: rgba(255, 126, 133, 0.2);
  
  /* Fonts */
  --font-sans: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  
  /* Layout */
  --header-height: 4.375rem; /* Desktop: 70px */
  --section-header-margin-bottom: 2.5000rem; /* Section header margin */
  --section-padding-vertical: 5rem; /* Section vertical padding */
  
  /* Typography scale */
  --fs-2xs: 0.625rem; /* 10px */
  --fs-xs: 0.75rem;   /* 12px */
  --fs-sm: 0.875rem;  /* 14px */
  --fs-base: 1rem;    /* 16px */
  --fs-1125: 1.125rem;/* 18px */
  --fs-lg: 1.25rem;   /* 20px */
  --fs-xl: 1.5rem;    /* 24px */
  --fs-2xl: 2rem;     /* 32px */
  
  /* Headings (semantic aliases) */
  --h1-size: var(--fs-2xl);
  --h2-size: var(--fs-xl);
  --h3-size: var(--fs-lg);
  --h4-size: var(--fs-base);

  /* Breakpoints */
  /* --breakpoint-xs: 36rem; 576px */
  /* --breakpoint-sm: 48rem; 768px */
  /* --breakpoint-md: 62rem; 992px */
  /* --breakpoint-lg: 75rem; 1200px */
  /* --breakpoint-xl: 87.5rem; 1400px */
}

*:where(:not(html, iframe, canvas, img, svg, video, audio):not(strong, b, em, i, mark, small, del, ins, sub, sup, pre, code):not(svg *, symbol *)) {
  all: unset;
  display: revert;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

::-moz-placeholder {
  color: unset;
}

::placeholder {
  color: unset;
}

:where([hidden]) {
  display: none;
}

:where([contenteditable]:not([contenteditable=false])) {
  -moz-user-modify: read-write;
  -webkit-user-modify: read-write;
  overflow-wrap: break-word;
  -webkit-line-break: after-white-space;
  -webkit-user-select: auto;
}

:where([draggable=true]) {
  -webkit-user-drag: element;
}

:where(dialog:modal) {
  all: revert;
}

a,
button {
  cursor: revert
}

menu,
ol,
ul {
  list-style: none
}

img {
  max-inline-size: 100%;
  max-block-size: 100%
}

table {
  border-collapse: collapse
}

input,
textarea {
  -webkit-user-select: auto
}

textarea {
  white-space: revert
}

meter {
  -webkit-appearance: revert;
  -moz-appearance: revert;
  appearance: revert
}

pre {
  all: revert
}

figure {
  margin: 0
}

html {
  font-size: var(--fs-base);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Offset content for fixed header */

body {
  font-size: var(--fs-base);
}

@font-face {
  font-family: Roboto;
  src: url(../fonts/roboto-regular.woff2) format("woff2"), url(../fonts/roboto-regular.woff) format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url(../fonts/roboto-700.woff2) format("woff2"), url(../fonts/roboto-700.woff) format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/material-icons.woff2) format("woff2");
  font-display: swap;
}

.material-icons {
  font-family: "Material Icons" !important;
  font-weight: 400 !important;
  font-style: normal;
  font-size: var(--fs-xl);
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased
}

.container {
  width: 100%;
  max-width: 93.7500rem;
  padding-left: 5rem;
  padding-right: 5rem;
  margin-left: auto;
  margin-right: auto
}

.container--grid {
  gap: 2.5000rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr)
}

.container__content {
  grid-column: 1/10
}

.container__sidebar {
  height: 100%;
  grid-column: 10/13
}

.content__list__empty,
.form form .wpcf7-not-valid-tip,
.form form .wpcf7-response-output,
.form form input:not([type=submit]),
.form form textarea,
.movie__content h2,
.text {
  font-weight: 400
}

.text-1 {
  font-size: var(--fs-xs)
}

.text-2 {
  font-size: var(--fs-sm);
  line-height: 1
}

.text-3 {
  font-size: var(--fs-base);
  line-height: 1.15
}

.text-4 {
  font-size: var(--fs-lg);
  line-height: 1.3
}

.text-5 {
  font-size: 2rem;
  line-height: 1.3
}

.text--bold {
  font-weight: 700
}

.text--uppercase {
  text-transform: uppercase
}

.hidden {
  display: none;
  visibility: hidden
}

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

/* Accordion styles moved to assets/css/accordion.css */

.btn,
.form form input[type=submit] {
  color: var(--color-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.7500rem;
  padding: .5em 1.25em;
  font-size: var(--fs-base);
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  text-transform: uppercase;
  background-color: var(--color-button-bg);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover,
.form form input[type=submit]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
  background-color: var(--color-button-hover);
  text-decoration: none !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.btn:active,
.form form input[type=submit]:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn .material-icons {
  font-size: 1.125rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.btn:hover .material-icons {
  transform: translateX(2px);
}

.btn--block {
  width: 100%;
  display: flex
}

.btn--small {
  height: 1.8750rem;
  font-size: .875rem;
  padding: .375em 1em;
  gap: 0.375rem;
}

.btn--small .material-icons {
  font-size: 1rem;
}

.btn--primary {
  background-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(255, 18, 18, 0.3), 0 1px 3px rgba(255, 18, 18, 0.2);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(255, 18, 18, 0.4), 0 2px 6px rgba(255, 18, 18, 0.3);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.5rem;
  padding-left: 1rem;
  padding-right: 2.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  min-width: 10rem;
  height: 2.5rem;
  line-height: 2.5rem;
}

.select:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(255, 18, 18, 0.1);
}

.select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 18, 18, 0.1);
}

.select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--color-bg-alt);
}

.select option {
  background-color: var(--color-surface);
  color: var(--color-text);
  padding: 0.5rem;
}

.netflix-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8.7500rem;
  height: 2.7500rem;
  background-color: var(--color-white);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 0.3750rem;
  box-shadow: inset 0 0 20px var(--netflix-glow-transparent);
  outline: 1px solid;
  outline-color: var(--netflix-glow-medium);
  outline-offset: 0;
  text-shadow: none;
  transition: all 1.25s cubic-bezier(.19, 1, .22, 1);
  font-weight: 700;
  text-decoration: none;
  color: var(--color-netflix)
}

.netflix-btn__background {
  position: absolute;
  width: 0;
  height: 0;
  background-color: var(--color-primary);
  border-radius: 6.2500rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: width .3s, height .3s, box-shadow .3s
}

.netflix-btn:hover {
  color: var(--color-white);
  text-decoration: none !important;
  box-shadow: inset 0 0 20px var(--netflix-glow-medium), 0 0 20px var(--netflix-shadow);
  text-shadow: 1px 1px 2px var(--color-shadow-text);
  outline-color: var(--netflix-glow-transparent);
  outline-offset: 0.9375rem
}

.netflix-btn:hover .netflix-btn__background {
  width: 12.5000rem;
  height: 12.5000rem;
  box-shadow: inset 0 0 300px -40px var(--color-black)
}

/* Removed incorrect external fontfutura; use global font stack instead */

.google-play-btn {
  color: var(--color-white);
  background-color: var(--color-bg-footer);
  padding: 0.3750rem 0.7500rem 0.3750rem 2.6250rem;
  position: relative;
  font-weight: 600;
  font-size: 1.1250rem;
  line-height: 1;
  border-radius: 0.3750rem;
  text-align: start;
  white-space: nowrap;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 1px solid var(--color-black);
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  text-decoration: none !important
}

.google-play-btn:active:focus,
.google-play-btn:focus {
  outline: 0
}

.google-play-btn:focus,
.google-play-btn:hover {
  text-decoration: none;
  outline: 0;
  color: var(--color-white);
  background-color: var(--color-button-bg);
  border-color: var(--color-black)
}

.google-play-btn:active {
  outline: 0;
  box-shadow: var(--shadow-inset)
}

.google-play-btn:before {
  content: "GET IT ON";
  font-size: var(--fs-2xs);
  font-weight: 400;
  margin-bottom: 0.1250rem
}

.google-play-btn:after {
  content: "";
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url(../img/google-play.svg);
  width: 1.8750rem;
  height: 1.8750rem;
  position: absolute;
  left: 0.3750rem;
  top: 50%;
  margin-top: -0.9375rem
}

.breadcrumbs {
  display: block
}

.breadcrumbs ul {
  gap: 0.2500rem 0.5000rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  font-weight: 400;
}

.breadcrumbs ul li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  list-style-type: none;
  position: relative
}

.breadcrumbs ul li:not(:first-child)::before {
  content: "›";
  font-size: var(--fs-xs);
  margin-right: 0.3750rem;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased
}

.responsive-img {
  padding-bottom: 62%;
  position: relative
}

.responsive-img>img {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  -o-object-fit: cover;
  object-fit: cover;
  vertical-align: middle
}

.responsive-img--big {
  padding-bottom: 90%
}

.responsive-img--half {
  padding-bottom: 50%
}

figure {
  display: flex;
  flex-direction: column
}

figure img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
  object-fit: cover
}

figure figcaption {
  color: var(--color-text);
  font-size: .76em;
  margin-top: .5em;
  font-family: Courier New, sans-serif;
  text-transform: uppercase
}

/* Article card styles moved to assets/css/article.css */
 
.categories {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .5rem
}

.categories__item {
  color: var(--color-white);
  padding: 0.1250rem 0.2500rem;
  display: inline-flex;
  border-radius: 2px;
  text-transform: uppercase;
  background-color: var(--color-primary)
}


.footer {
  background-color: var(--color-bg-footer);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer__content {
  display: grid;
  padding-top: 3rem;
  padding-bottom: 2.5000rem;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

.footer__content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.footer__content img {
  width: 10rem;
  height: 1.1250rem;
  margin: 0 auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  filter: brightness(0.95);
}

.footer__content img:hover {
  opacity: 1;
  filter: brightness(1);
}

.footer__menu {
  width: 100%;
  max-width: 50rem;
  margin: 0 auto;
  position: relative;
}

.footer__menu ul {
  gap: 2rem;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__menu ul a {
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  position: relative;
  opacity: 0.85;
}

.footer__menu ul a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 1px;
  background-color: var(--color-primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer__menu ul a:hover {
  opacity: 1;
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer__menu ul a:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.footer__copy {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 400;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.02em;
}

/* Form styles moved to assets/css/forms.css */

/* Movie styles moved to assets/css/movie.css */

.content {
  width: 100%;
  height: 100%;
  min-height: 80vh;
  position: relative
}

.content.content--term {
  padding-top: calc(var(--header-height) + 1rem);
  padding-bottom: 2rem;
}

.content.content--contact-us {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 2rem;
}

.content__header {
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--color-bg-tertiary);
  color: var(--color-bg-header)
}

.content__header h1 {
  font-size: var(--fs-2xl);
  margin-bottom: 0.5000rem;
  text-transform: uppercase
}

.content__header p {
  font-weight: 100;
}

.content__section {
  padding-block: var(--section-padding-vertical);
}

.content__section--top {
  background: var(--color-bg-tertiary)
}

.content__section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--section-header-margin-bottom);
}

.content__section__title .btn,
.content__section__title .form form input[type=submit],
.form form .content__section__title input[type=submit] {
  text-transform: initial
}

.content__section__list {
  display: grid;
  grid-gap: 1.1250rem;
  grid-template-columns: repeat(4, 1fr)
}

.content__title {
  color: var(--color-text-secondary);
  display: block;
  position: relative;
  font-style: italic;
  padding-left: 1rem;
  text-transform: uppercase
}

.content__title:after {
  content: "";
  top: 0;
  left: 0;
  width: 0.3125rem;
  height: 100%;
  display: block;
  position: absolute;
  background: var(--color-primary)
}


.content__search-title {
  gap: 0.2500rem;
  width: 100%;
  color: var(--color-text);
  display: flex;
  font-size: 1rem;
  text-align: center;
  font-weight: 400;
  align-items: center;
  margin-bottom: .5rem;
  text-transform: uppercase;
  justify-content: center
}

.content__list .content__section__title {
  margin-top: 2rem
}

.content__list .content__section__title:first-child {
  margin-top: 0
}

.content__list__empty {
  color: var(--color-text);
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  min-height: 6.2500rem;
  max-height: 18.7500rem;
  font-weight: 700
}

.content__sticky {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  top: calc(var(--header-height) + 1rem);
  position: sticky;
  transition: top 0.3s ease;
  height: fit-content;
}


/* ========== TOP POSTS WIDGET ========== */
/* Hide widget-title on frontend for top-posts-widget */
.top-posts-widget .widget-title,
.widget.top-posts-widget .widget-title {
    display: none;
}

.top-posts-widget {
  background-color: var(--color-surface);
  border-radius: 1rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-posts-widget:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: var(--color-border);
}

.top-posts-widget__header {
  padding: 0;
}

.top-posts-widget__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
}

.top-posts-widget__toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  transition: background-color 0.2s ease;
  z-index: 0;
}

.top-posts-widget__toggle:hover::before {
  background-color: var(--color-bg-alt);
}

.top-posts-widget__toggle > * {
  position: relative;
  z-index: 1;
}

.top-posts-widget__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text);
  flex: 1;
  letter-spacing: -0.01em;
}

.top-posts-widget__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 0.875rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
}

.top-posts-widget__icon {
  font-size: 1.5rem;
  color: var(--color-text-subtle);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.top-posts-widget__toggle.collapsed .top-posts-widget__icon {
  transform: rotate(90deg);
  color: var(--color-primary);
}

.top-posts-widget__list {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: max-height;
  max-height: 0;
}

.top-posts-widget__list:not(.collapsed) {
  max-height: 2000px;
}

.top-posts-widget__items {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: top-posts-counter;
}

.top-posts-widget__item {
  counter-increment: top-posts-counter;
  border-top: 1px solid var(--color-border-subtle);
  transition: background-color 0.2s ease;
}

.top-posts-widget__item:first-child {
  border-top: none;
}

.top-posts-widget__item:hover {
  background-color: var(--color-bg-alt);
}

.top-posts-widget__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s ease;
  position: relative;
}

.top-posts-widget__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-primary);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.top-posts-widget__link:hover {
  color: var(--color-primary);
  padding-left: 1.75rem;
}

.top-posts-widget__link:hover::before {
  transform: scaleY(1);
}

.top-posts-widget__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  background-color: var(--color-bg-header);
  color: var(--color-white);
  border-radius: 0.375rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.top-posts-widget__link:hover .top-posts-widget__number {
  background-color: var(--color-primary);
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(255, 18, 18, 0.3);
}

.top-posts-widget__text {
  flex: 1;
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.2s ease;
}

/* ========== PAGINATION ========== */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination li {
  list-style: none;
}

.pagination li > a,
.pagination li > span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text);
  min-width: 2.5rem;
  justify-content: center;
  font-family: var(--font-sans);
}

.pagination a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 18, 18, 0.3);
  text-decoration: none;
}

.pagination .current {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  font-weight: 700;
  cursor: default;
}

.pagination .dots,
.pagination .dots:hover {
  border: none;
  background: transparent;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.pagination .material-icons {
  font-size: 1.125rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.pagination .prev,
.pagination .next {
  white-space: nowrap;
  min-width: auto;
}

@media (min-width:62rem) {
  .footer__content {
    padding-top: 4rem;
    padding-bottom: 3rem;
    gap: 2.5000rem;
  }

  .footer__content::before {
    width: 4rem;
    height: 3px;
  }

  .footer__content img {
    width: 11rem;
    height: 1.25rem;
  }

  .footer__menu ul {
    gap: 2.5000rem;
  }

  .footer__menu ul a {
    font-size: 0.9375rem;
  }

  .footer__copy {
    font-size: 0.875rem;
    padding-top: 2rem;
  }
}

@media (max-width:75rem) {
  :root {
    --section-padding-vertical: 3.5rem;
  }

  .container {
      padding-left: 3.5000rem;
      padding-right: 3.5000rem
  }

  .container--grid {
      gap: 2.1250rem
  }

  .netflix-btn {
      width: 8.1250rem;
      height: 2.5000rem
  }

  .netflix-btn:hover .netflix-btn__background {
      width: 9.3750rem;
      height: 9.3750rem
  }

  .google-play-btn {
      padding: 0.3125rem 0.5000rem 0.3125rem 2.1250rem;
      font-size: 1rem
  }

  .google-play-btn:after {
      left: 0.2500rem;
      width: 1.7500rem;
      height: 1.7500rem;
      margin-top: -0.8750rem
  }

  /* Article and not-found responsive styles moved to separate CSS files */
}

@media (max-width:62rem) {  
  :root {
    --section-padding-vertical: 2.5rem;
  }

  .container {
      padding-left: 2rem;
      padding-right: 2rem;
      grid-template-rows: auto;
      grid-template-columns: 1fr
  }

  .container__content {
      grid-column: 1
  }

  .container__sidebar {
      grid-column: 1
  }

  /* Editor-view responsive styles are defined in assets/css/editor-view.css */

  .content__section__list {
      grid-gap: 1rem;
      grid-template-rows: repeat(2, 1fr);
      grid-template-columns: repeat(2, 1fr)
  }

  .content__header {
      padding-top: 2rem;
      padding-bottom: 2rem
  }

  .content__header h1 {
      font-size: 1.5rem
  }

  /* Article and not-found responsive styles moved to separate CSS files */
}

/* removed header-specific dark-mode media (moved to header.css) */

@media (max-width:48rem) {
  .container {
      padding-left: 1.5000rem;
      padding-right: 1.5000rem
  }
  
  :root {
      /* Slightly reduce typography on tablets */
      --fs-xl: 1.375rem;
      --fs-2xl: 1.75rem;
      --h1-size: var(--fs-2xl);
      --h2-size: var(--fs-xl);
      --header-height: 4rem;
      --section-padding-vertical: 1.3750rem;
  }

  .text-1 {
      font-size: .65rem
  }

  .text-4 {
      font-size: 1.15rem
  }

  .netflix-btn {
      width: 7.5000rem
  }

  .netflix-btn:hover .netflix-btn__background {
      width: 8.7500rem;
      height: 8.7500rem
  }

  /* Form and movie responsive styles moved to separate CSS files */

  .content__header {
      padding-top: 1.2500rem;
      padding-bottom: 1.2500rem
  }

  .content__header h1 {
      font-size: 1.25rem
  }

  /* Top Posts Widget - Tablet */
  .top-posts-widget__toggle {
      padding: 1.125rem 1.375rem;
  }

  .top-posts-widget__link {
      padding: 0.9375rem 1.375rem;
  }

  .footer__content {
    padding-top: 2.5000rem;
    padding-bottom: 2rem;
    gap: 1.5000rem;
  }

  .footer__menu ul {
    gap: 1.2500rem;
  }

  .footer__menu ul a {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
  }

  .footer__copy {
    font-size: 0.75rem;
    padding-top: 1.2500rem;
  }

  /* Not-found responsive styles moved to assets/css/404.css */
}

@media (max-width:36rem) {
  .container {
      padding-left: 1rem;
      padding-right: 1rem
  }
  
  :root {
      /* Further reduce on phones */
      --fs-xl: 1.25rem;
      --fs-2xl: 1.5rem;
      --h1-size: var(--fs-2xl);
      --h2-size: var(--fs-xl);
  }

  .btn:not(.btn--small),
  .form form input[type=submit]:not(.btn--small) {
      height: 2.5000rem
  }

  :root {
      /* Phones: 58px */
      --header-height: 3.625rem;
  }

  :root {
    --section-padding-vertical: 1rem;
  }

  .content__section {
      margin-bottom: 0.7500rem
  }

  .content__section:last-child {
      margin-bottom: 0
  }

  .content__section__list {
      grid-gap: 1rem;
      grid-template-rows: repeat(4, 1fr);
      grid-template-columns: repeat(1, 1fr)
  }

  .content__list .content__section__title {
      margin-top: 1.5000rem
  }

  .content__list__empty {
      font-size: 1rem
  }

  .pagination {
      margin-top: 2rem;
      gap: 0.375rem;
  }

  .pagination > a,
  .pagination > span {
      padding: 0.5rem 0.75rem;
      font-size: var(--fs-xs);
      min-width: 2rem;
  }

  .pagination .material-icons {
      font-size: 1rem;
  }

  /* Top Posts Widget - Mobile */
  .top-posts-widget__toggle {
      padding: 1rem 1.25rem;
  }

  .top-posts-widget__title {
      font-size: var(--fs-base);
  }

  .top-posts-widget__count {
      min-width: 1.5rem;
      height: 1.5rem;
      font-size: 0.625rem;
      padding: 0 0.375rem;
  }

  .top-posts-widget__icon {
      font-size: 1.25rem;
  }

  .top-posts-widget__link {
      padding: 0.875rem 1.25rem;
      gap: 0.75rem;
  }

  .top-posts-widget__link:hover {
      padding-left: 1.5rem;
  }

  .top-posts-widget__number {
      min-width: 1.5rem;
      height: 1.5rem;
      font-size: var(--fs-xs);
  }

  .top-posts-widget__text {
      font-size: var(--fs-sm);
  }

  .footer__content {
    padding-top: 2rem;
    padding-bottom: 1.7500rem;
    gap: 1.2500rem;
  }

  .footer__content img {
    width: 9rem;
    height: 1rem;
  }

  .footer__menu ul {
    gap: 1rem;
    flex-direction: column;
  }

  .footer__menu ul a {
    font-size: 0.8125rem;
    padding: 0.375rem 0.5rem;
  }

  .footer__copy {
    font-size: 0.75rem;
    padding-top: 1rem;
  }
}

@media screen and (prefers-color-scheme:dark) {
  :root {
      /* Dark Mode - перевизначення змінних */
      
      /* Backgrounds - темні кольори */
      --color-bg: #181818;
      --color-bg-alt: #1d1d1d;
      --color-bg-secondary: #323232;
      --color-bg-tertiary: #1d1d1d;
      --color-bg-elevated: #222;
      --color-bg-header: #101010;
      --color-bg-footer: #101010;
      --color-bg-code: #1b1b1b;
      
      /* Surfaces - темні */
      --color-surface: #222;
      --color-surface-hover: #2a2a2a;
      
      /* Text - світлі кольори */
      --color-text: #fff;
      --color-text-secondary: #ddd;
      --color-text-tertiary: #ddd;
      --color-text-muted: #aaa;
      --color-text-subtle: #999;
      --color-text-disabled: #666;
      
      /* Borders - темні */
      --color-border: #333;
      --color-border-subtle: #2a2a2a;
      --color-border-strong: #444;
      
      /* Interactive Elements */
      --color-button-bg: #444;
      --color-button-hover: #555;
      --color-input-bg: #333;
      
      /* Primary color для кращої видимості */
      --color-primary-alt: #ff4545;
      
      /* Shadows & Overlays - темніші для dark mode */
      --shadow-sm: 0 5px 25px 0 rgba(0, 0, 0, 0.4);
      --overlay-hover: rgba(0, 0, 0, 0.4);
      --overlay-gradient-end: rgba(16, 16, 16, 1);
      --overlay-modal: rgba(24, 24, 24, 0.95);
  }
  
  .select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  }

  .breadcrumbs ul {
    color: var(--color-text-secondary);
  }

  .breadcrumbs ul li a {
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
  }

  .breadcrumbs ul li a:hover {
    color: var(--color-primary);
  }

  .breadcrumbs ul li span {
    color: var(--color-text-muted);
  }

  .breadcrumbs ul li:not(:first-child)::before {
    color: var(--color-text-muted);
  }

  .content {
    background: linear-gradient(
      180deg,
      var(--color-bg-tertiary) 0%,
      var(--color-bg) 50%,
      var(--color-bg-tertiary) 100%
    );
  }

  .content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 18, 18, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(255, 18, 18, 0.04) 0%,
      transparent 50%
    );
    pointer-events: none;
    z-index: 0;
  }

  .content__title {
    color: var(--color-text-secondary);
  }

  .content__title:after {
    background: var(--color-primary);
  }
}

/* ========== MOVIE LINK WIDGET STYLES ========== */
.movie-link-widget {
  background-color: var(--color-surface);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)
}

.movie-link-widget:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px)
}

.movie-link-widget__header {
  margin-bottom: 1rem
}

.movie-link-widget__title {
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.movie-link-widget__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 600
}

.movie-link-widget__rating .material-icons {
  font-size: 1rem;
  color: #ffd700
}

.movie-link-widget__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-subtle);
  font-size: 0.875rem;
  margin-bottom: 1rem
}

.movie-link-widget__meta .material-icons {
  font-size: 1rem
}

.movie-link-widget__genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem
}

.movie-link-widget__genre {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.025em
}

.movie-link-widget__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)
}

.movie-link-widget__button .material-icons {
  font-size: 1.25rem
}

.movie-link-widget__sources {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 1rem
}

.movie-link-widget__sources-title {
  display: block;
  color: var(--color-text-secondary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-size: 0.75rem
}

.movie-link-widget__sources-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem
}

.movie-link-widget__source-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden
}

.movie-link-widget__source-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15)
}

/* Responsive styles for movie link widget */
@media (max-width: var(--breakpoint-xs)) {
  .movie-link-widget {
      padding: 1.25rem
  }

  .movie-link-widget__title {
      font-size: 1rem
  }

  .movie-link-widget__genres {
      gap: 0.375rem
  }

  .movie-link-widget__genre {
      font-size: 0.6875rem;
      padding: 0.1875rem 0.5rem
  }

  .movie-link-widget__button {
      padding: 0.875rem 1rem
  }

  .movie-link-widget__source-btn {
      padding: 0.625rem 0.875rem;
      font-size: 0.8125rem
  }
}