.tipsy-viewport {
  width: 100%;
  max-width: var(--tipsy-viewport-max, none);
  margin-inline: auto;
  padding-inline: var(--tipsy-gutter);
}

.tipsy-page-container,
.page-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-inline);
}

.tipsy-page-container--user {
  padding-block: var(--layout-section-gap) calc(var(--layout-section-gap) + 8px);
}

.tipsy-container {
  width: 100%;
  max-width: var(--tipsy-container-max);
  margin-inline: auto;
}

/* ── Header ── */
.tipsy-header {
  position: sticky;
  top: 0;
  z-index: 200;
  flex-shrink: 0;
}

.tipsy-header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--tipsy-header-h);
  background: rgba(8, 8, 11, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: visible;
  min-height: var(--tipsy-header-h);
  max-height: var(--tipsy-header-h);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tipsy-header__bar {
    background: rgba(10, 10, 14, 0.98);
  }
}

.tipsy-header__menu-btn {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tipsy-secondary);
  font-size: var(--tipsy-type-title);
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

.tipsy-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.tipsy-header__logo-text {
  font-size: var(--tipsy-type-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tipsy-header__logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.tipsy-header__logo-visual {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.tipsy-header__logo-picture {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.tipsy-header__logo-img {
  display: block;
  width: auto;
  height: 34px;
  max-width: 180px;
  object-fit: contain;
}

.tipsy-header__logo-fallback {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.tipsy-header__logo-fallback[hidden] {
  display: none !important;
}

.tipsy-header__nav {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: visible;
}

.tipsy-header__nav-link,
.tipsy-header__nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tipsy-secondary);
  border-radius: 0;
  white-space: nowrap;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--tipsy-motion-duration) var(--tipsy-motion-ease);
}

@media (min-width: 1280px) {
  .tipsy-header__nav-link,
  .tipsy-header__nav-trigger {
    font-size: 15px;
    padding: 8px 12px;
  }
}

.tipsy-header__nav-link:hover,
.tipsy-header__nav-trigger:hover,
.tipsy-header__dropdown:focus-within .tipsy-header__nav-trigger {
  color: var(--tipsy-text);
  background: transparent;
}

.tipsy-header__nav-link.is-active,
.tipsy-header__nav-trigger.is-active {
  color: var(--tipsy-text);
  background: transparent;
  border-radius: 0;
  border-bottom: none;
  box-shadow: inset 0 -1px 0 var(--brand-primary);
  padding-bottom: 8px;
}

.tipsy-header__nav-link.is-active:hover,
.tipsy-header__nav-trigger.is-active:hover {
  color: var(--tipsy-text);
  background: transparent;
}

.tipsy-header__caret { font-size: 10px; opacity: 0.7; }

@media (min-width: 768px) {
  .tipsy-header__caret {
    display: none;
  }
}

.tipsy-header__dropdown { position: relative; z-index: 2; }

.tipsy-header__dropdown.is-open { z-index: 60; }

.tipsy-header__dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  padding: 8px;
  background: var(--tipsy-surface);
  border: 1px solid var(--tipsy-border);
  border-radius: 12px;
  box-shadow: var(--tipsy-shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--tipsy-motion-duration) var(--tipsy-motion-ease), transform var(--tipsy-motion-duration) var(--tipsy-motion-ease), visibility var(--tipsy-motion-duration) var(--tipsy-motion-ease);
  z-index: 60;
}

.tipsy-header__dropdown-panel[hidden] {
  display: none !important;
}

.tipsy-header__dropdown.is-open .tipsy-header__dropdown-panel,
.tipsy-header__dropdown:focus-within .tipsy-header__dropdown-panel,
.tipsy-header__dropdown:hover .tipsy-header__dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tipsy-header__dropdown.is-open .tipsy-header__dropdown-panel[hidden] {
  display: block !important;
}

.tipsy-header__dropdown-link {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--tipsy-secondary);
  border-radius: 8px;
}

.tipsy-header__dropdown-link:hover {
  color: var(--tipsy-text);
  background: var(--tipsy-surface-hover);
}

.tipsy-header__dropdown-link--more {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--tipsy-border);
  color: var(--tipsy-accent);
  font-weight: 500;
}

.tipsy-header__bar-lang {
  position: relative;
  flex-shrink: 0;
}

.tipsy-header__capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--tipsy-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tipsy-border);
  border-radius: 999px;
  white-space: nowrap;
  transition:
    color var(--tipsy-motion-duration) var(--tipsy-motion-ease),
    background var(--tipsy-motion-duration) var(--tipsy-motion-ease),
    border-color var(--tipsy-motion-duration) var(--tipsy-motion-ease);
}

.tipsy-header__capsule:hover,
.tipsy-header__lang-menu.is-open .tipsy-header__lang.tipsy-header__capsule,
.tipsy-header__user-menu.is-open .tipsy-header__user.tipsy-header__capsule {
  color: var(--tipsy-text);
  background: var(--tipsy-accent-soft);
  border-color: var(--tipsy-accent);
}

.tipsy-header__search {
  display: none;
  align-items: center;
  gap: var(--space-2);
  flex: 0 1 240px;
  width: auto;
  min-width: 160px;
  max-width: 260px;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition:
    border-color var(--tipsy-motion-duration) var(--tipsy-motion-ease),
    background var(--tipsy-motion-duration) var(--tipsy-motion-ease);
}

.tipsy-header__search:focus-within {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.tipsy-header__search-icon { color: var(--tipsy-muted); font-size: 15px; line-height: 1; opacity: 0.75; }

.tipsy-header__search .tipsy-input,
.tipsy-header__search-input {
  border: 0;
  padding: 0;
  background: transparent;
  height: auto;
  min-width: 0;
}

.tipsy-header__search-mobile {
  display: none;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tipsy-secondary);
  font-size: 18px;
  line-height: 1;
  transition: color var(--tipsy-motion-duration) var(--tipsy-motion-ease);
}

.tipsy-header__search-mobile:hover,
.tipsy-header__search-mobile:focus-visible {
  color: var(--tipsy-text);
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
}

/* Shared 40×40 icon control — extends .tipsy-icon-btn (components) */
.tipsy-header__icon-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tipsy-icon-btn-size);
  height: var(--tipsy-icon-btn-size);
  padding: 0;
  border: 1px solid var(--tipsy-border);
  border-radius: var(--tipsy-radius-md);
  background: var(--tipsy-surface);
  color: var(--tipsy-text);
  line-height: 1;
  transition:
    color var(--tipsy-motion-duration) var(--tipsy-motion-ease),
    background var(--tipsy-motion-duration) var(--tipsy-motion-ease),
    border-color var(--tipsy-motion-duration) var(--tipsy-motion-ease);
}

.tipsy-header__icon-btn:hover,
.tipsy-header__icon-btn:focus-visible {
  background: var(--tipsy-surface-hover);
  border-color: var(--tipsy-accent);
  outline: none;
  box-shadow: var(--tipsy-shadow-focus);
}

.tipsy-header__user-menu { position: relative; z-index: 1; flex-shrink: 0; }

.tipsy-header__auth {
  display: none;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.tipsy-header__auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 999px;
  transition:
    color var(--tipsy-motion-duration) var(--tipsy-motion-ease),
    background var(--tipsy-motion-duration) var(--tipsy-motion-ease),
    border-color var(--tipsy-motion-duration) var(--tipsy-motion-ease);
}

.tipsy-header__auth-link--login {
  color: var(--tipsy-secondary);
  background: transparent;
  border: 1px solid transparent;
}

.tipsy-header__auth-link--login:hover,
.tipsy-header__auth-link--login:focus-visible {
  color: var(--tipsy-text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.tipsy-header__auth-link--register {
  color: var(--tipsy-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--tipsy-border);
}

.tipsy-header__auth-link--register:hover,
.tipsy-header__auth-link--register:focus-visible {
  color: var(--tipsy-text);
  background: var(--tipsy-accent-soft);
  border-color: var(--tipsy-accent);
  outline: none;
  box-shadow: var(--tipsy-shadow-focus);
}

.tipsy-header__lang-menu { position: relative; z-index: 1; }

.tipsy-header__user-menu.is-open { z-index: 60; }

.tipsy-header__lang-menu.is-open { z-index: 60; }

.tipsy-header__lang.tipsy-header__capsule,
.tipsy-header__user.tipsy-header__capsule {
  cursor: pointer;
}

.tipsy-header__lang-icon { font-size: 14px; line-height: 1; }

.tipsy-header__lang-code { letter-spacing: 0.02em; }

.tipsy-header__lang-panel,
.tipsy-header__user-panel {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  left: auto;
  min-width: 200px;
  padding: var(--space-2);
  background: var(--tipsy-surface-hover);
  border: 1px solid var(--tipsy-border);
  border-radius: var(--tipsy-radius-md);
  box-shadow: var(--tipsy-shadow-hover);
  z-index: 70;
}

.tipsy-header__lang-panel[hidden],
.tipsy-header__user-panel[hidden] {
  display: none !important;
}

.tipsy-header__lang-menu.is-open .tipsy-header__lang-panel,
.tipsy-header__user-menu.is-open .tipsy-header__user-panel {
  display: block;
  animation: tipsy-overlay-in var(--tipsy-motion-duration) var(--tipsy-motion-ease);
}

@keyframes tipsy-overlay-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tipsy-header__user-panel {
  min-width: 168px;
  background: var(--tipsy-surface);
  border-radius: var(--tipsy-radius-md);
}

.tipsy-header__lang-section {
  margin: var(--space-2) 0 var(--space-1);
  padding: 0 var(--space-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.tipsy-header__lang-section:first-child {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.72);
}

.tipsy-header__lang-current {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 var(--space-1) var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: 14px;
  font-weight: 600;
  color: var(--tipsy-text);
  border-radius: var(--tipsy-radius-sm);
}

.tipsy-header__lang-check {
  color: var(--tipsy-accent);
  font-weight: 700;
}

.tipsy-header__lang-link {
  display: block;
  margin: 0 var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  border-radius: var(--tipsy-radius-sm);
  transition:
    color var(--tipsy-motion-duration) var(--tipsy-motion-ease),
    background var(--tipsy-motion-duration) var(--tipsy-motion-ease);
}

.tipsy-header__lang-link:hover {
  color: var(--tipsy-text);
  background: #2a2a35;
}

.tipsy-header__user-panel a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--tipsy-secondary);
  border-radius: 8px;
}

.tipsy-header__user-panel a:hover {
  color: var(--tipsy-text);
  background: var(--tipsy-surface-hover);
}

/* Drawer */
.tipsy-header__backdrop {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  cursor: pointer;
}

.tipsy-header__drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 220;
  width: min(320px, 88vw);
  height: 100%;
  padding: 0;
  background: var(--tipsy-surface);
  border-right: 1px solid var(--tipsy-border);
  transform: translateX(-100%);
  transition: transform 0.25s ease-out;
  overflow-y: auto;
}

.tipsy-header__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--tipsy-header-h);
  padding: 0 var(--tipsy-gutter);
  border-bottom: 1px solid var(--tipsy-border);
}

.tipsy-header__drawer-title { font-size: 16px; font-weight: 600; }

.tipsy-header__drawer-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  color: var(--tipsy-secondary);
  cursor: pointer;
  border-radius: 8px;
}

.tipsy-header__drawer-close:hover { background: var(--tipsy-surface-hover); color: var(--tipsy-text); }

.tipsy-header__drawer-nav { padding: 0 var(--tipsy-gutter) 32px; }

.tipsy-header__drawer-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px var(--tipsy-gutter);
  padding: 16px;
  background: linear-gradient(145deg, var(--tipsy-surface-hover) 0%, var(--tipsy-surface) 100%);
  border: 1px solid var(--tipsy-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: inherit;
  text-decoration: none;
}

.tipsy-header__drawer-user--signed-in:hover {
  border-color: color-mix(in srgb, var(--tipsy-accent) 55%, var(--tipsy-border));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.tipsy-header__drawer-user-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--tipsy-surface);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tipsy-accent) 35%, transparent);
}

.tipsy-header__drawer-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tipsy-header__drawer-user-avatar--guest {
  display: grid;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--tipsy-accent) 45%, var(--tipsy-border));
  background: var(--tipsy-surface);
}

.tipsy-header__drawer-user-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 20px;
  font-weight: 600;
  color: var(--tipsy-secondary);
  background: transparent;
}

.tipsy-header__drawer-user-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tipsy-header__drawer-user-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tipsy-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tipsy-header__drawer-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--tipsy-muted);
}

.tipsy-header__drawer-user-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tipsy-secondary);
  background: var(--tipsy-surface-hover);
  border: 1px solid var(--tipsy-border);
}

.tipsy-header__drawer-user-badge--vip {
  color: #1a1208;
  background: linear-gradient(135deg, #f5d78e 0%, #d4a017 100%);
  border-color: transparent;
}

.tipsy-header__drawer-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.tipsy-header__drawer-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 10px;
  color: var(--tipsy-muted);
}

.tipsy-header__drawer-section::before,
.tipsy-header__drawer-section::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--tipsy-border);
}

.tipsy-header__drawer-section-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tipsy-secondary);
}

.tipsy-header__drawer-primary {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.tipsy-header__drawer-primary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tipsy-text);
  background: var(--tipsy-surface-hover);
  border: 1px solid var(--tipsy-border);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tipsy-header__drawer-primary-item:hover {
  color: var(--tipsy-accent);
  border-color: color-mix(in srgb, var(--tipsy-accent) 45%, var(--tipsy-border));
  background: color-mix(in srgb, var(--tipsy-accent) 8%, var(--tipsy-surface-hover));
}

.tipsy-header__drawer-primary-icon {
  flex-shrink: 0;
  width: 1.35em;
  font-size: 1.1em;
  line-height: 1;
  text-align: center;
}

.tipsy-header__drawer-primary-label {
  flex: 1;
  min-width: 0;
}

.tipsy-header__drawer-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 16px;
}

.tipsy-header__drawer-search-input {
  min-width: 0;
  height: 40px;
}

.tipsy-header__drawer-search-btn {
  height: 40px;
  padding-inline: 16px;
  white-space: nowrap;
}

.tipsy-header__drawer-label {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tipsy-secondary);
}

.tipsy-header__drawer-label:first-child { margin-top: 0; }

.tipsy-header__drawer-link {
  display: block;
  padding: 12px 0;
  font-size: var(--tipsy-type-body);
  color: var(--tipsy-text);
  border-bottom: 1px solid transparent;
}

.tipsy-header__drawer-link:hover { color: var(--tipsy-accent); }

.tipsy-header__drawer-divider {
  margin: 12px 0;
  border: 0;
  border-top: 1px solid var(--tipsy-border);
}

.tipsy-header__drawer-link--priority,
.tipsy-header__drawer-link--browse,
.tipsy-header__drawer-link--discover {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tipsy-header__drawer-icon {
  flex-shrink: 0;
  width: 1.25em;
  text-align: center;
  font-size: 1.05em;
  line-height: 1;
}

.tipsy-header__drawer-link--nested {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 10px 4px;
  font-size: var(--tipsy-type-small, 14px);
  color: var(--tipsy-secondary);
}

.tipsy-header__drawer-link--nested.is-active {
  color: var(--tipsy-text);
  font-weight: 600;
}

.tipsy-header__drawer-lang-mark {
  flex-shrink: 0;
  width: 1em;
  text-align: center;
  color: var(--tipsy-accent);
}

.tipsy-header__drawer-details {
  border-bottom: 1px solid transparent;
}

.tipsy-header__drawer-details-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: var(--tipsy-type-body);
  color: var(--tipsy-text);
  cursor: pointer;
  list-style: none;
}

.tipsy-header__drawer-details-summary::-webkit-details-marker {
  display: none;
}

.tipsy-header__drawer-details-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tipsy-header__drawer-details-title {
  font-weight: 500;
}

.tipsy-header__drawer-details-current {
  font-size: 12px;
  color: var(--tipsy-muted);
}

.tipsy-header__drawer-details-summary::after {
  content: "›";
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
  color: var(--tipsy-muted);
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}

.tipsy-header__drawer-details[open] .tipsy-header__drawer-details-summary::after {
  transform: rotate(90deg);
}

.tipsy-header__drawer-details-panel {
  padding-bottom: 4px;
}

#tipsy-nav-toggle:checked ~ .tipsy-header__backdrop {
  opacity: 1;
  visibility: visible;
}

#tipsy-nav-toggle:checked ~ .tipsy-header__drawer {
  transform: translateX(0);
}

/* Tablet + Desktop shared (768+) — account/search utilities */
@media (min-width: 768px) {
  .tipsy-header__bar {
    display: flex;
    gap: 12px;
  }

  .tipsy-header__bar-search-mobile { display: none !important; }

  .tipsy-header__bar-user { display: block; flex-shrink: 0; }
  .tipsy-header__bar-auth { display: flex; flex-shrink: 0; }

  .tipsy-header__bar-lang .tipsy-header__lang.tipsy-header__capsule {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 6px 8px;
    gap: 6px;
    border-radius: 6px;
    border: 0;
    background: transparent;
    color: var(--tipsy-secondary);
  }

  .tipsy-header__bar-lang .tipsy-header__lang.tipsy-header__capsule:hover,
  .tipsy-header__lang-menu.is-open .tipsy-header__lang.tipsy-header__capsule {
    color: var(--tipsy-text);
    background: transparent;
    border: 0;
  }

  .tipsy-header__bar-lang .tipsy-header__lang-code {
    display: inline;
  }

  .tipsy-header__bar-lang .tipsy-header__lang-icon {
    display: inline;
    font-size: 14px;
  }
}

/* Tablet 768–1279 — inline simplified nav (no drawer) */
@media (min-width: 768px) and (max-width: 1279px) {
  .tipsy-header__bar-menu { display: none !important; }

  .tipsy-header__bar-nav {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
  }

  .tipsy-header__bar-logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(180px, 28vw);
  }

  .tipsy-header__bar-logo .tipsy-header__logo-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tipsy-header__bar-lang { display: none !important; }

  .tipsy-header__bar-search {
    display: flex;
    flex: 0 1 168px;
    min-width: 112px;
    max-width: 200px;
    margin-left: auto;
  }

  .tipsy-header__nav-link,
  .tipsy-header__nav-trigger {
    padding: 8px 10px;
    font-size: 13px;
  }

  /* Priority trim: actor lowest */
  .tipsy-header__bar-nav > a.tipsy-header__nav-link[href*="actor"] {
    display: none !important;
  }
}

/* Tablet narrow 768–1023 — tighter logo + hide topic */
@media (min-width: 768px) and (max-width: 1023px) {
  .tipsy-header__bar-logo {
    max-width: min(120px, 28vw);
  }

  .tipsy-header__bar-nav > a.tipsy-header__nav-link[href*="topic"] {
    display: none !important;
  }

  .tipsy-header__bar-search {
    flex: 0 1 140px;
    min-width: 96px;
    max-width: 168px;
  }
}

/* Desktop ≥1280 — full nav + language */
@media (min-width: 1280px) {
  .tipsy-header__bar-menu { display: none !important; }

  .tipsy-header__bar-nav {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow: visible;
  }

  .tipsy-header__bar-lang { display: block; flex-shrink: 0; }

  .tipsy-header__bar-search {
    display: flex;
    margin-left: auto;
    flex: 0 1 220px;
    min-width: 160px;
    max-width: 280px;
  }

  .tipsy-header__bar-logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(180px, 18vw);
  }

  .tipsy-header__bar-logo .tipsy-header__logo-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Mobile — frozen 4-column grid: ☰ | Logo | 🌐 | 🔍 */
@media (max-width: 767px) {
  .tipsy-header__bar {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px 40px;
    grid-template-areas: "menu logo lang search";
    align-items: center;
    gap: 8px;
  }

  .tipsy-header__bar-menu {
    grid-area: menu;
    display: grid;
  }

  .tipsy-header__bar-logo {
    grid-area: logo;
    min-width: 0;
    overflow: hidden;
  }

  .tipsy-header__logo-img {
    height: 32px;
    max-width: 138px;
  }

  .tipsy-header__bar-logo .tipsy-header__logo-mark {
    margin-right: 6px;
  }

  .tipsy-header__logo-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tipsy-header__bar-nav,
  .tipsy-header__bar-search,
  .tipsy-header__bar-user,
  .tipsy-header__bar-auth {
    display: none !important;
  }

  .tipsy-header__bar-lang {
    grid-area: lang;
    display: block !important;
    width: 40px;
    height: 40px;
    z-index: 3;
  }

  .tipsy-header__bar-lang .tipsy-header__lang-menu {
    display: block !important;
    width: 100%;
    height: 100%;
  }

  .tipsy-header__bar-lang .tipsy-header__lang.tipsy-header__capsule {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    gap: 0;
    border-radius: 8px;
    border: 0;
    background: transparent;
    justify-content: center;
  }

  .tipsy-header__bar-lang .tipsy-header__lang.tipsy-header__capsule:hover,
  .tipsy-header__lang-menu.is-open .tipsy-header__bar-lang .tipsy-header__lang.tipsy-header__capsule {
    background: transparent;
    border: 0;
    color: var(--tipsy-text);
  }

  .tipsy-header__bar-lang .tipsy-header__lang-icon {
    display: inline;
    font-size: 18px;
    line-height: 1;
  }

  .tipsy-header__bar-lang .tipsy-header__lang-code {
    display: none;
  }

  .tipsy-header__bar-search-mobile {
    grid-area: search;
    display: grid !important;
    width: 40px;
    height: 40px;
    z-index: 3;
  }

  .tipsy-header__logo-mark {
    width: 28px;
    height: 28px;
    margin-right: 6px;
    border-radius: 7px;
    font-size: 12px;
  }

  .tipsy-header__logo-text {
    font-size: 14px;
  }

  .tipsy-header__menu-btn {
    width: 36px;
    height: 36px;
  }

  .tipsy-header__bar {
    background: var(--tipsy-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 359px) {
  .tipsy-header__logo-img {
    max-width: 120px;
  }
}

/* ── App shell — sticky footer + page skeleton ── */
.tipsy-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-block: 0;
}

.tipsy-layout--listing .tipsy-main,
.tipsy-layout--detail .tipsy-main {
  padding-block: var(--space-6) var(--tipsy-section-gap);
}

.tipsy-layout--player .tipsy-main {
  padding-block: var(--space-6) 0;
}

/* UX-2H.1 — page-end breathing zone before footer divider */
.tipsy-layout--home .tipsy-main {
  padding-bottom: var(--tipsy-section-gap);
}

.tipsy-layout--auth .tipsy-main {
  padding-block: 0;
}

.tipsy-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.tipsy-page__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tipsy-page__content {
  width: 100%;
  max-width: var(--tipsy-container-max);
  margin-inline: auto;
  padding-inline: var(--tipsy-gutter);
}

.tipsy-page__content--narrow {
  max-width: 24rem;
}

.tipsy-page--auth .tipsy-page__main {
  padding-block: var(--space-6) var(--space-5);
}

.tipsy-layout--user .tipsy-main {
  flex: 1 1 auto;
  padding-block: 0;
}

.tipsy-page--user .tipsy-page__main {
  flex: 1 1 auto;
  padding-block: 0;
}

.tipsy-user-layout__container,
.tipsy-page-container--user {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-inline);
  padding-block: var(--layout-section-gap) calc(var(--layout-section-gap) + 8px);
  box-sizing: border-box;
}

.tipsy-user-layout__header {
  display: flex;
  flex-direction: column;
  gap: var(--layout-stack-gap);
  margin-bottom: var(--layout-header-body-gap);
  padding-bottom: 0;
  border-bottom: 0;
}

.tipsy-user-layout__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--layout-section-gap);
}

.tipsy-user-layout__card {
  width: 100%;
}

@media (max-width: 767px) {
  .tipsy-user-layout__header {
    gap: var(--layout-stack-gap);
    margin-bottom: var(--layout-stack-gap);
  }
}

.tipsy-section {
  margin-top: var(--tipsy-page-section-gap);
  margin-bottom: 0;
}

.tipsy-section:first-child {
  margin-top: 0;
}

.tipsy-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--tipsy-section-head-gap);
}

.tipsy-section__title {
  margin: 0;
  font-size: var(--tipsy-type-h3);
  font-weight: 600;
  line-height: var(--tipsy-type-h3-lh);
}

.tipsy-section__body {
  display: flex;
  flex-direction: column;
  gap: var(--tipsy-card-gap);
}

.tipsy-layout-home__sections {
  padding-block: var(--tipsy-home-section-gap, var(--tipsy-section-gap)) 0;
}

.tipsy-layout--home .tipsy-viewport:not(.tipsy-viewport--player) {
  padding-inline: var(--tipsy-home-gutter, var(--tipsy-gutter));
}

.tipsy-layout--home .tipsy-viewport:not(.tipsy-header__bar) {
  max-width: 100%;
  overflow-x: clip;
}

.tipsy-layout--home .tipsy-container,
.tipsy-layout--home .tipsy-layout-home__sections {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--tipsy-container-max);
  margin-inline: auto;
  overflow-x: clip;
}

.tipsy-header__bar.tipsy-viewport {
  overflow: visible;
}

@media (max-width: 767px) {
  .tipsy-layout--home .tipsy-layout-home__sections {
    padding-block: var(--tipsy-home-section-gap, var(--space-5)) 0;
  }
}

.tipsy-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--tipsy-section-head-gap);
}

.tipsy-section-head__text { min-width: 0; }

.tipsy-section-head__title {
  margin: 0;
  font-size: var(--tipsy-type-title);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: var(--tipsy-type-title-lh);
}

.tipsy-section-head__subtitle {
  margin: 4px 0 0;
  font-size: var(--tipsy-type-meta);
  color: var(--tipsy-muted);
  line-height: var(--tipsy-type-meta-lh);
}

.tipsy-section-head__more {
  flex-shrink: 0;
}

/* ── Video grid — cols from --tipsy-grid-cols token ── */
.tipsy-video-grid {
  display: grid;
  grid-template-columns: repeat(var(--tipsy-grid-cols, 2), minmax(0, 1fr));
  gap: var(--tipsy-grid-gap);
}

/* ── Layout D — Play page shell (shared legacy container SSOT) ── */
.tipsy-layout--player .tipsy-main > .tipsy-media-breadcrumb {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--tipsy-gutter));
  max-width: var(--tipsy-container-max);
  margin-inline: auto;
  padding-inline: 0;
}

.tipsy-viewport--player {
  width: 100%;
  max-width: var(--tipsy-viewport-max, none);
  margin-inline: auto;
  padding-inline: var(--tipsy-gutter);
}

.tipsy-play-shell {
  width: 100%;
  max-width: var(--tipsy-container-max);
  margin-inline: auto;
  padding-block-start: 20px;
  padding-inline: 0;
  box-sizing: border-box;
}

.tipsy-layout:not(.tipsy-layout--player) .tipsy-play-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 24px;
  align-items: start;
}

.tipsy-play-sidebar-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.tipsy-play-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.tipsy-play-related,
.tipsy-play-more {
  margin-top: 32px;
}

.tipsy-play-related-grid {
  display: grid;
  grid-template-columns: repeat(var(--tipsy-grid-cols, 2), minmax(0, 1fr));
  gap: var(--tipsy-grid-gap);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .tipsy-layout:not(.tipsy-layout--player) .tipsy-play-stage {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .tipsy-layout:not(.tipsy-layout--player) .tipsy-play-stage {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }

  .tipsy-play-sidebar-shell {
    width: 320px;
    max-width: 320px;
  }
}

@media (max-width: 767px) {
  .tipsy-play-shell {
    overflow-x: clip;
  }

  .tipsy-layout:not(.tipsy-layout--player) .tipsy-play-stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Full-bleed player — explicit mobile exception; body/tabs/related keep viewport gutter */
  .tipsy-play-stage__main {
    width: calc(100% + 2 * var(--tipsy-gutter));
    max-width: 100vw;
    margin-inline: calc(-1 * var(--tipsy-gutter));
    overflow: hidden;
  }

  .tipsy-play-body,
  .tipsy-play-related,
  .tipsy-play-more {
    margin-top: 16px;
  }

  .tipsy-play-sidebar-shell {
    width: 100%;
    max-width: none;
  }
}

.tipsy-grid {
  display: grid;
  grid-template-columns: repeat(var(--tipsy-grid-cols, 4), minmax(0, 1fr));
  gap: var(--tipsy-grid-gap);
}

.tipsy-grid--actors { --tipsy-grid-cols: inherit; }

.tipsy-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: var(--tipsy-footer-pad-y) 0;
  border-top: 1px solid var(--tipsy-border);
  background: var(--tipsy-elev-0-bg, var(--tipsy-bg));
  text-align: left;
}

.tipsy-footer .tipsy-viewport {
  width: 100%;
}

.tipsy-footer__inner {
  text-align: left;
}

.tipsy-footer__grid {
  display: grid;
  gap: var(--tipsy-footer-cluster-gap);
}

.tipsy-footer__brand {
  max-width: 28rem;
}

.tipsy-footer__logo {
  display: inline-block;
  margin: 0 0 var(--tipsy-footer-brand-gap);
  font-size: var(--tipsy-type-h3);
  font-weight: 700;
  line-height: var(--tipsy-type-h3-lh);
  color: var(--tipsy-text);
  text-decoration: none;
  border-radius: var(--tipsy-radius-sm, 6px);
  transition: color var(--tipsy-motion-duration) var(--tipsy-motion-ease);
}

.tipsy-footer__logo:hover {
  color: var(--brand-primary-hover);
}

.tipsy-footer__logo:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.tipsy-footer__tagline {
  margin: 0;
  font-size: var(--tipsy-type-meta);
  font-weight: 400;
  line-height: var(--tipsy-type-meta-lh);
  color: var(--tipsy-muted);
}

.tipsy-footer__clusters {
  display: flex;
  flex-direction: column;
  gap: var(--tipsy-footer-cluster-gap);
  min-width: 0;
}

.tipsy-footer__meta {
  margin-top: var(--tipsy-footer-meta-gap);
  padding-top: var(--space-4);
  border-top: 1px solid var(--tipsy-border);
}

.tipsy-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-2) var(--space-4);
  font-size: var(--tipsy-type-meta);
  line-height: var(--tipsy-type-meta-lh);
}

.tipsy-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: var(--space-1) 0;
  color: var(--tipsy-secondary);
  text-decoration: none;
  border-radius: var(--tipsy-radius-sm, 6px);
  transition: color var(--tipsy-motion-duration) var(--tipsy-motion-ease);
}

.tipsy-footer__nav a:hover {
  color: var(--brand-primary-hover);
}

.tipsy-footer__nav a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.tipsy-footer__copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--tipsy-muted);
  text-align: left;
}

.tipsy-footer__nav-sep {
  color: var(--tipsy-muted);
  user-select: none;
}

@media (min-width: 768px) {
  .tipsy-footer__grid {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .tipsy-footer__grid {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  }

  .tipsy-footer__nav {
    gap: var(--space-2) var(--space-5);
  }
}

.tipsy-footer--mini {
  padding: 18px 0;
  min-height: 64px;
}

.tipsy-footer__inner--mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
}

.tipsy-footer__copy--mini {
  margin: 0;
  font-size: 12px;
}

.tipsy-footer__nav--mini {
  gap: var(--space-2);
  font-size: 12px;
}

.tipsy-layout--user .tipsy-footer--mini,
.tipsy-layout--auth .tipsy-footer--mini {
  margin-top: auto;
}

@media (max-width: 767px) {
  .tipsy-footer {
    padding: var(--space-5) 0;
  }

  .tipsy-footer__meta {
    margin-top: var(--space-5);
    padding-top: var(--space-3);
  }
}

.tipsy-page__head {
  margin-bottom: var(--tipsy-auth-title-gap);
}

.tipsy-page__title {
  margin: 0;
  font-size: var(--tipsy-type-h1);
  font-weight: 700;
  line-height: var(--tipsy-type-h1-lh);
  letter-spacing: -0.02em;
}

.tipsy-page-head { margin-bottom: var(--tipsy-page-head-gap); }

.tipsy-page-head__title {
  margin: 0;
  font-size: var(--tipsy-type-h2);
  font-weight: 600;
  line-height: var(--tipsy-type-h2-lh);
}

.tipsy-page-head__desc {
  margin: var(--space-2) 0 0;
  color: var(--tipsy-secondary);
  font-size: var(--tipsy-type-body);
  line-height: var(--tipsy-type-body-lh);
}

.tipsy-layout-static {
  padding: var(--space-6) 0 var(--space-10);
  max-width: 720px;
}

.tipsy-static-body {
  color: var(--tipsy-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.tipsy-static-body p {
  margin: 0 0 1em;
}

.tipsy-static-body h2 {
  margin: 1.75em 0 0.5em;
  font-size: 17px;
  font-weight: 600;
  color: var(--tipsy-primary);
}

.tipsy-static-dl {
  margin: 0;
}

.tipsy-static-dl__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tipsy-border);
}

.tipsy-static-dl__row:first-child {
  padding-top: 0;
}

.tipsy-static-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--tipsy-primary);
}

.tipsy-static-dl dd {
  margin: 0;
}

.tipsy-static-note {
  margin-top: 1.5em;
  color: var(--tipsy-muted);
  font-size: 14px;
}

.tipsy-static-link {
  color: var(--tipsy-accent);
}

.tipsy-sitemap__section + .tipsy-sitemap__section {
  margin-top: 2em;
}

.tipsy-sitemap__section h2 {
  margin: 0 0 0.75em;
  font-size: 16px;
}

.tipsy-sitemap__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.tipsy-sitemap__list a {
  color: var(--tipsy-secondary);
}

.tipsy-sitemap__list a:hover {
  color: var(--tipsy-accent);
}

.tipsy-layout--channels .tipsy-main {
  flex: 0 1 auto;
  padding-bottom: var(--space-12);
}

.tipsy-layout-channels {
  padding: var(--space-5) 0 0;
  max-width: var(--tipsy-container-max);
}

.tipsy-channels__hero {
  position: relative;
  margin: 0 0 var(--space-5);
  padding: var(--space-4) 0 var(--space-2);
  text-align: center;
}

.tipsy-channels__hero::before,
.tipsy-channels__hero::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(72px, 10vw, 120px);
  height: clamp(72px, 10vw, 120px);
  opacity: 0.08;
  pointer-events: none;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.tipsy-channels__hero::before {
  left: clamp(8px, 4vw, 48px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Ccircle cx='32' cy='32' r='22'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3Cpath d='M32 10v6M32 48v6M10 32h6M48 32h6'/%3E%3C/svg%3E");
}

.tipsy-channels__hero::after {
  right: clamp(8px, 4vw, 48px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M8 16h48v32H8z'/%3E%3Cpath d='M8 24h48M20 16v-6h24v6'/%3E%3C/svg%3E");
}

.tipsy-channels__hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tipsy-primary, var(--tipsy-text));
}

.tipsy-channels__hero-desc {
  position: relative;
  z-index: 1;
  margin: var(--space-2) auto 0;
  max-width: 36em;
  color: var(--tipsy-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.tipsy-channels__surface {
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid var(--tipsy-border);
  border-radius: 18px;
  background: var(--tipsy-surface);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 48px rgba(0, 0, 0, 0.35);
}

.tipsy-channels__primary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  margin: 0 0 24px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--tipsy-border);
}

.tipsy-channels__primary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 88px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--tipsy-secondary);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tipsy-channels__primary-item:hover {
  border-color: rgba(240, 45, 120, 0.45);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tipsy-text);
  transform: translateY(-1px);
}

.tipsy-channels__primary-item.is-active {
  border-color: var(--tipsy-accent);
  background: var(--tipsy-accent-soft);
  color: var(--tipsy-accent);
  box-shadow: 0 0 0 1px rgba(240, 45, 120, 0.2) inset;
}

.tipsy-channels__primary-item:focus-visible {
  outline: 2px solid var(--tipsy-accent);
  outline-offset: 2px;
}

.tipsy-channels__primary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.tipsy-channels__icon-svg {
  display: block;
}

.tipsy-channels__primary-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.tipsy-channels__empty {
  margin: 0 0 8px;
  padding: 20px 16px;
  border: 1px dashed var(--tipsy-border);
  border-radius: 12px;
  color: var(--tipsy-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.tipsy-channels__filter-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px 28px;
  align-items: start;
  padding: 14px 0;
}

.tipsy-channels__filter-row + .tipsy-channels__filter-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tipsy-channels__filter-label {
  position: relative;
  padding-left: 12px;
  color: var(--tipsy-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 36px;
  white-space: nowrap;
}

.tipsy-channels__filter-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 2px;
  background: var(--tipsy-accent);
}

.tipsy-channels__filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tipsy-channels__pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--tipsy-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--tipsy-secondary);
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.tipsy-channels__pill:hover {
  border-color: rgba(240, 45, 120, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tipsy-text);
}

.tipsy-channels__pill:focus-visible {
  outline: 2px solid var(--tipsy-accent);
  outline-offset: 2px;
}

.tipsy-channels__featured {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--tipsy-border);
}

.tipsy-channels__featured-heading {
  margin: 0 0 16px;
  color: var(--tipsy-text);
  font-size: 16px;
  font-weight: 600;
}

.tipsy-channels__featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tipsy-channels__featured-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.tipsy-channels__featured-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 45, 120, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.tipsy-channels__featured-card:focus-visible {
  outline: 2px solid var(--tipsy-accent);
  outline-offset: 2px;
}

.tipsy-channels__featured-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.tipsy-channels__featured-icon--hot { color: #ff8a3d; }
.tipsy-channels__featured-icon--score { color: #5b9dff; }
.tipsy-channels__featured-icon--latest { color: #ff5b8a; }
.tipsy-channels__featured-icon--hits { color: #ffb347; }

.tipsy-channels__featured-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tipsy-channels__featured-title {
  color: var(--tipsy-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.tipsy-channels__featured-desc {
  color: var(--tipsy-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tipsy-channels__featured-arrow {
  color: var(--tipsy-muted);
  font-size: 15px;
}

@media (min-width: 1280px) {
  .tipsy-channels__primary {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

@media (max-width: 1279px) {
  .tipsy-channels__featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .tipsy-channels__primary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tipsy-layout-channels {
    padding-top: var(--space-4);
  }

  .tipsy-channels__hero {
    margin-bottom: var(--space-4);
    padding-top: var(--space-2);
  }

  .tipsy-channels__hero::before,
  .tipsy-channels__hero::after {
    display: none;
  }

  .tipsy-channels__surface {
    padding: 16px;
    border-radius: 16px;
  }

  .tipsy-channels__primary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .tipsy-channels__primary-item {
    min-height: 80px;
    padding: 10px 6px;
  }

  .tipsy-channels__filter-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .tipsy-channels__filter-label {
    line-height: 1.4;
  }

  .tipsy-channels__featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 374px) {
  .tipsy-channels__primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tipsy-channels__featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .tipsy-static-dl__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.tipsy-paging {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.tipsy-paging a,
.tipsy-paging span {
  padding: 8px 14px;
  border: 1px solid var(--tipsy-border);
  border-radius: 8px;
  font-size: 14px;
}

.tipsy-paging .active {
  background: var(--tipsy-accent-soft);
  border-color: var(--tipsy-accent);
  color: var(--tipsy-accent);
}
