/* Yabancidizi V2 – isolated visual refresh. No auth, status or reaction logic changes. */

/* Episode action buttons: match the simple V2 film controls; keep navigation and JS intact. */
body.frontend-v2.v2-episode-page .v2-episode-actions {
  width:100%; min-width:0; flex-wrap:wrap; align-items:center; gap:8px;
  padding:0!important; margin:12px 0 18px!important;
  border:0!important; border-radius:0!important;
  background:none!important; box-shadow:none!important;
}
body.frontend-v2.v2-episode-page .v2-episode-actions--desktop {display:flex!important;}
body.frontend-v2.v2-episode-page .v2-episode-actions--mobile {display:none!important;}
body.frontend-v2.v2-episode-page .v2-episode-actions .button-group {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px!important;
  min-width:0; width:auto!important; margin:0!important;
}
body.frontend-v2.v2-episode-page .v2-episode-actions .button-group:first-child {flex:1 1 auto;}
body.frontend-v2.v2-episode-page .v2-episode-actions .button-group:last-child {flex:0 1 auto;margin-left:auto!important;justify-content:flex-end;}
body.frontend-v2.v2-episode-page .v2-episode-actions .button-group > * {margin-left:0!important;margin-right:0!important;}
body.frontend-v2.v2-episode-page .v2-episode-actions .durum-wrap {display:inline-flex!important;flex:0 0 auto;z-index:9999!important;}
body.frontend-v2.v2-episode-page .v2-episode-actions .durum-btn,
body.frontend-v2.v2-episode-page .v2-episode-actions .reaction-btn,
body.frontend-v2.v2-episode-page .v2-episode-actions .set-action {
  display:inline-flex!important; align-items:center; justify-content:center;
  gap:7px!important; height:40px; min-height:40px; padding:0 13px!important;
  border:1px solid rgba(255,255,255,.08)!important; border-radius:9px!important;
  background:rgba(255,255,255,.045)!important; color:#e2e5eb!important;
  box-shadow:none!important; font-size:13px!important; font-weight:550!important;
  line-height:1.2; text-decoration:none!important; white-space:nowrap; transform:none!important;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease;
}
body.frontend-v2.v2-episode-page .v2-episode-actions .durum-btn {padding:0 15px!important;}
body.frontend-v2.v2-episode-page .v2-episode-actions .reaction-btn {min-width:56px;}
body.frontend-v2.v2-episode-page .v2-episode-actions .reaction-btn svg,
body.frontend-v2.v2-episode-page .v2-episode-actions .durum-btn svg {width:18px!important;height:18px!important;flex-shrink:0;}
body.frontend-v2.v2-episode-page .v2-episode-actions .set-action .icon {opacity:.8;flex:0 0 auto;}
body.frontend-v2.v2-episode-page .v2-episode-actions .durum-btn:hover,
body.frontend-v2.v2-episode-page .v2-episode-actions .reaction-btn:hover,
body.frontend-v2.v2-episode-page .v2-episode-actions .set-action:hover {
  background:rgba(255,255,255,.09)!important; color:#fff!important;
}
/* Keep selected reactions neutral: no green/red or accent-colored state. */
body.frontend-v2.v2-episode-page .v2-episode-actions .reaction-btn.reaction-active,
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .reaction-btn.reaction-active {
  color:#f1f2f5!important;
  border-color:rgba(255,255,255,.16)!important;
  background:rgba(255,255,255,.085)!important;
  box-shadow:none!important;
}
body.frontend-v2.v2-episode-page .v2-episode-actions .reaction-btn.reaction-active svg,
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .reaction-btn.reaction-active svg {
  stroke:currentColor!important;
}
body.frontend-v2.v2-episode-page .v2-episode-actions .durum-menu {
  border:1px solid rgba(255,255,255,.1)!important;
  border-radius:10px!important; background:#191b25!important;
  box-shadow:0 12px 32px rgba(0,0,0,.3)!important;
}

/* Rating: toned down and closer to V1 — simple dark row with compact IMDb badge. */
body.frontend-v2.v2-episode-page .v2-episode-rating {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;
  width:100%; padding:12px 14px!important; margin-top:16px!important;
  background:rgba(28,31,42,.92)!important;
  border:1px solid rgba(255,255,255,.07)!important; border-radius:7px!important;
  box-shadow:none!important;
}
body.frontend-v2.v2-episode-page .v2-episode-rating .imdb-card {
  display:flex; align-items:center; gap:14px; min-width:0; max-width:100%;
}
body.frontend-v2.v2-episode-page .v2-episode-rating .rating-box {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  flex:0 0 60px; width:60px; height:60px; padding:6px!important; margin:0!important;
  border-radius:6px!important; border:none!important;
  background-color:#fdbf1a!important;
  background-image:linear-gradient(225deg, rgba(58,53,90,0), #ef4604)!important;
  color:#fff!important; font-size:20px!important; font-weight:780!important;
  line-height:1!important;
}
body.frontend-v2.v2-episode-page .v2-episode-rating .rating-box::before {
  content:"IMDb"; display:block; color:rgba(255,255,255,.78); font-size:10px;
  letter-spacing:.04em; font-weight:700; line-height:1;
}
body.frontend-v2.v2-episode-page .v2-episode-rating .details {
  min-width:0; flex:1 1 auto;
}
body.frontend-v2.v2-episode-page .v2-episode-rating .details p {margin:0!important;}
body.frontend-v2.v2-episode-page .v2-episode-rating .details .title {
  font-size:15px!important; font-weight:650!important; line-height:1.35;
  color:#f8f9fc!important; letter-spacing:0!important;
}
body.frontend-v2.v2-episode-page .v2-episode-rating .details .subtitle {
  font-size:13px!important; color:#a6adbb!important; margin-top:4px!important; line-height:1.45;
}
body.frontend-v2.v2-episode-page .v2-episode-rating .button-group.blank {
  margin:0 0 0 auto!important; display:flex; align-items:center; flex:0 0 auto;
}
body.frontend-v2.v2-episode-page .v2-episode-rating a.watch-trailer {
  display:inline-flex!important; align-items:center; gap:8px!important; min-height:40px;
  padding:0 15px!important; border-radius:8px!important;
  border:1px solid rgba(255,255,255,.11)!important; background:rgba(255,255,255,.04)!important;
  color:#eef1f8!important; font-size:13px!important; font-weight:600!important; text-decoration:none!important;
  box-shadow:none!important; transition:background .15s ease,border-color .15s ease,color .15s ease;
}
body.frontend-v2.v2-episode-page .v2-episode-rating a.watch-trailer:hover {
  border-color:rgba(255,255,255,.18)!important; background:rgba(255,255,255,.08)!important; color:#fff!important;
}
body.frontend-v2.v2-episode-page .v2-episode-rating a.watch-trailer .icon {margin-right:0!important;opacity:.85;}

/* Film page (V2 only): native actions, without additional panel decorations. */
body.frontend-v2.v2-film-page .container- .button-group.mt-1 {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  width:100%; margin:12px 0 18px!important; padding:0!important;
  background:none!important; border:0!important; box-shadow:none!important;
}
body.frontend-v2.v2-film-page .container- .button-group.mt-1 > .flex {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px!important;
  width:100%; min-width:0;
}
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .durum-wrap {
  display:inline-flex!important; flex:0 0 auto; z-index:5;
}
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .durum-btn,
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .btn-list-action,
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .reaction-btn {
  display:inline-flex!important; align-items:center; justify-content:center;
  gap:7px!important; height:40px; min-height:40px; padding:0 13px!important;
  border:1px solid rgba(255,255,255,.08)!important; border-radius:9px!important;
  background:rgba(255,255,255,.045)!important; color:#e2e5eb!important;
  box-shadow:none!important; font-size:13px!important; font-weight:550!important;
  line-height:1.2; white-space:nowrap; transform:none!important;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease;
}
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .durum-btn {padding:0 15px!important;}
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .btn-list-action {
  width:42px; padding:0!important;
}
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .reaction-btn {min-width:56px;}
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .reaction-btn svg,
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .btn-list-action svg {width:18px!important;height:18px!important;flex-shrink:0;}
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .durum-btn svg {width:18px;height:18px;flex-shrink:0;}
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .durum-btn:hover,
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .btn-list-action:hover,
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .reaction-btn:hover {
  background:rgba(255,255,255,.09)!important; color:#fff!important;
}
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .btn-list-active {
  color:var(--v2-accent2,#e27f94)!important;
  border-color:color-mix(in srgb,var(--v2-accent) 25%,transparent)!important;
}
body.frontend-v2.v2-film-page .container- .button-group.mt-1 .durum-menu {
  border:1px solid rgba(255,255,255,.1)!important;
  border-radius:10px!important; background:#191b25!important;
  box-shadow:0 12px 32px rgba(0,0,0,.3)!important;
}

/* Login / register: minimal V2 refinement, existing forms and handlers unchanged. */
body.frontend-v2 .auth-modal-overlay {
  background:rgba(0,0,0,.76); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
}
body.frontend-v2 .auth-modal {
  width:100%; max-width:420px; max-height:90vh; overflow-x:hidden;
  padding:30px 30px 28px!important; position:relative; isolation:auto;
  background:#171821!important; background-image:none!important;
  border:none!important; border-radius:15px!important;
  box-shadow:0 22px 65px rgba(0,0,0,.52)!important;
}
body.frontend-v2 .auth-modal::before {display:none!important;content:none!important;}
body.frontend-v2 .auth-modal-logo {min-height:30px; margin-bottom:22px!important; padding-right:36px;}
body.frontend-v2 .auth-modal-logo img {max-width:180px;max-height:40px;object-fit:contain;}
body.frontend-v2 .auth-modal-logo-badge {
  background:var(--v2-accent,#a02d50)!important; border:none!important;
  border-radius:7px!important; padding:5px 9px!important;
}
body.frontend-v2 .auth-modal-logo-name {font-size:17px!important;font-weight:650!important;letter-spacing:-.01em;}
body.frontend-v2 .auth-modal-close {
  top:17px!important; right:17px!important; width:32px!important; height:32px!important;
  border:0!important; border-radius:8px!important;
  background:transparent!important; color:#aeb3bf!important;
}
body.frontend-v2 .auth-modal-close:hover {background:rgba(255,255,255,.08)!important;color:#fff!important;}
body.frontend-v2 .v2-auth-eyebrow {display:none!important;}
body.frontend-v2 .auth-modal-title {
  color:#f7f7fa!important; font-size:23px!important; font-weight:700!important;
  line-height:1.25!important; letter-spacing:-.025em!important; margin-bottom:8px!important;
}
body.frontend-v2 .auth-modal-subtitle {
  color:#a3a7b4!important; font-size:13px!important; line-height:1.55!important;
  max-width:none; margin-bottom:22px!important;
}
body.frontend-v2 .auth-input-wrap {
  margin-bottom:11px!important; border:1px solid rgba(255,255,255,.075)!important;
  border-radius:9px!important; background:#22232e!important;
  box-shadow:none!important; transition:border-color .16s ease,background .16s ease;
}
body.frontend-v2 .auth-input-wrap:hover {border-color:rgba(255,255,255,.12)!important;}
body.frontend-v2 .auth-input-wrap:focus-within {
  background:#252631!important; border-color:color-mix(in srgb,var(--v2-accent) 45%,#51515e)!important;
  box-shadow:none!important;
}
body.frontend-v2 .auth-input-icon {height:46px!important; width:43px!important; background:transparent!important;}
body.frontend-v2 .auth-input-icon svg {width:17px!important;height:17px!important;stroke:#9194a2!important;}
body.frontend-v2 .auth-input-wrap:focus-within .auth-input-icon svg {stroke:#c9cbd3!important;}
body.frontend-v2 .auth-input-wrap input {
  height:46px!important; min-width:0; padding:0 13px 0 1px!important;
  color:#f8f8fb!important; font-size:13px!important;
}
body.frontend-v2 .auth-input-wrap input::placeholder {color:#868b9a!important;opacity:1;}
body.frontend-v2 .auth-login-actions {margin-top:15px!important;}
body.frontend-v2 .auth-submit-btn {
  width:auto!important; min-width:116px!important; height:40px!important;
  border:0!important; border-radius:9px!important; padding:0 23px!important;
  background:#f3f3f5!important; background-image:none!important; color:#171821!important;
  font-size:13px!important; font-weight:700!important; letter-spacing:0!important;
  box-shadow:none!important;
}
body.frontend-v2 .auth-submit-btn:hover {background:#fff!important;filter:none!important;}
body.frontend-v2 .auth-submit-btn:disabled {opacity:.6!important;filter:none!important;}
body.frontend-v2 .auth-divider {
  color:#7c8090!important; font-size:11px!important;
  margin:19px 0 16px!important; letter-spacing:.025em!important;
}
body.frontend-v2 .auth-divider::before,
body.frontend-v2 .auth-divider::after {background:rgba(255,255,255,.07)!important;}
body.frontend-v2 .auth-switch {font-size:13px!important;color:#a8adba!important;padding:0;line-height:1.5;}
body.frontend-v2 .auth-switch span {
  color:#f1f2f5!important; font-weight:650!important;
  text-decoration:none!important;
}
body.frontend-v2 .auth-switch:hover span {text-decoration:underline!important;text-underline-offset:3px;}
body.frontend-v2 .auth-error,body.frontend-v2 .auth-success {margin-bottom:13px;}

@media(max-width:1023px) {
  /* On narrow devices, retain the original position inside the episode sidebar. */
  body.frontend-v2.v2-episode-page .v2-episode-actions--desktop {display:none!important;}
  body.frontend-v2.v2-episode-page .v2-episode-actions--mobile {display:flex!important;}
  body.frontend-v2.v2-episode-page .v2-episode-actions--mobile .button-group:last-child {
    margin-left:0!important; justify-content:flex-start;
  }
}
@media(max-width:640px) {
  body.frontend-v2.v2-episode-page .v2-episode-actions--mobile .button-group:first-child {flex:0 1 auto;}
  body.frontend-v2.v2-episode-page .v2-episode-actions--mobile .button-group:last-child {flex:1 1 100%;}
  body.frontend-v2.v2-episode-page .v2-episode-actions--mobile .durum-btn {padding:0 11px!important;}
  body.frontend-v2.v2-episode-page .v2-episode-actions--mobile .reaction-btn {min-width:51px;padding:0 10px!important;}
  body.frontend-v2.v2-episode-page .v2-episode-rating {padding:13px!important;gap:13px;}
  body.frontend-v2.v2-episode-page .v2-episode-rating .rating-box {width:60px;height:60px;flex-basis:60px;font-size:21px!important;}
  body.frontend-v2.v2-episode-page .v2-episode-rating .details .title {font-size:14px!important;}
  body.frontend-v2.v2-episode-page .v2-episode-rating .button-group.blank {width:100%;margin-left:0!important;}
  body.frontend-v2.v2-episode-page .v2-episode-rating a.watch-trailer {width:100%;justify-content:center;}
  body.frontend-v2.v2-film-page .container- .button-group.mt-1 > .flex {gap:7px!important;}
  body.frontend-v2.v2-film-page .container- .button-group.mt-1 .durum-btn {padding:0 11px!important;}
  body.frontend-v2.v2-film-page .container- .button-group.mt-1 .reaction-btn {min-width:51px;padding:0 10px!important;}
  body.frontend-v2 .auth-modal-overlay {padding:12px;}
  body.frontend-v2 .auth-modal {padding:25px 23px 24px!important;max-height:calc(100dvh - 24px);}
  body.frontend-v2 .auth-modal-logo {margin-bottom:19px!important;}
  body.frontend-v2 .auth-modal-title {font-size:21px!important;}
  body.frontend-v2 .auth-modal-subtitle {margin-bottom:19px!important;}
}
@media(prefers-reduced-motion:reduce) {
  body.frontend-v2 .auth-modal,body.frontend-v2 .auth-input-wrap,
  body.frontend-v2.v2-episode-page .v2-episode-actions :is(button,a) {animation:none!important;transition:none!important;}
}
