:root {
  --rkch-cyan: #10a9bd;
  --rkch-cyan-dark: #087383;
  --rkch-red: #dc1b32;
  --rkch-line: rgba(255,255,255,.12);
  --rkch-container: 1280px;
}

.rkch-header,
.rkch-header * {
  box-sizing: border-box;
}

.rkch-header {
  position: relative;
  z-index: 99990;
  width: 100%;
  color: #fff;
  background: #030405;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

.rkch-header.rkch-sticky {
  position: sticky;
  top: 0;
}

.admin-bar .rkch-header.rkch-sticky {
  top: 32px;
}

.rkch-container {
  width: min(calc(100% - 40px), var(--rkch-container));
  margin-inline: auto;
}

/* Kompakter Hauptbereich */
.rkch-main {
  background:
    radial-gradient(circle at 12% 20%, rgba(0,128,146,.14), transparent 32%),
    radial-gradient(circle at 88% 15%, rgba(100,0,14,.11), transparent 30%),
    linear-gradient(90deg,#02090a 0%,#020304 48%,#080203 100%);
  border-bottom: 1px solid var(--rkch-line);
}

.rkch-main-grid {
  min-height: 145px;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  align-items: center;
  gap: 42px;
  padding-block: 12px;
}

/* Logo rechts */
.rkch-logo-area {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.rkch-logo {
  display: block;
  width: 100%;
  text-decoration: none;
}

.rkch-logo img {
  display: block;
  width: min(100%, 360px);
  max-height: 108px;
  margin-right: 0;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,.4));
}

/* Player Mitte */
.rkch-player-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.rkch-live-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.rkch-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rkch-red);
  box-shadow: 0 0 0 0 rgba(220,27,50,.6);
  animation: rkchPulse 1.6s infinite;
}

.rkch-player {
  width: min(100%, 460px);
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr 155px;
  overflow: hidden;
  border: 1px solid rgba(16,169,189,.55);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(11,135,153,.92), rgba(4,38,43,.96));
  box-shadow: 0 8px 24px rgba(0,0,0,.34);
}

.rkch-play-button {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.rkch-play-circle {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rkch-cyan-dark);
  background: #fff;
  box-shadow: 0 5px 12px rgba(0,0,0,.3);
}

.rkch-play-circle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.rkch-icon-pause,
.rkch-loader {
  display: none;
}

.rkch-play-button.is-playing .rkch-icon-play {
  display: none;
}

.rkch-play-button.is-playing .rkch-icon-pause {
  display: block;
}

.rkch-play-button.is-loading .rkch-icon-play,
.rkch-play-button.is-loading .rkch-icon-pause {
  display: none;
}

.rkch-play-button.is-loading .rkch-loader {
  display: block;
  width: 21px;
  height: 21px;
  border: 3px solid rgba(8,115,131,.25);
  border-top-color: var(--rkch-cyan-dark);
  border-radius: 50%;
  animation: rkchSpin .8s linear infinite;
}

.rkch-player-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.rkch-player-copy strong {
  font: 800 22px/1.1 Arial, sans-serif;
}

.rkch-player-copy small {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,.82);
}

.rkch-volume-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border-left: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.24);
}

.rkch-mute {
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.rkch-mute svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.rkch-volume {
  width: 74px;
  accent-color: var(--rkch-cyan);
}

.rkch-eq {
  height: 24px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.rkch-eq i {
  width: 4px;
  display: block;
  background: var(--rkch-cyan);
  animation: rkchEq .9s infinite ease-in-out;
}

.rkch-eq i:nth-child(1) { height: 8px; }
.rkch-eq i:nth-child(2) { height: 15px; animation-delay: .15s; }
.rkch-eq i:nth-child(3) { height: 22px; animation-delay: .3s; }
.rkch-eq i:nth-child(4) { height: 13px; animation-delay: .45s; }

.rkch-status {
  min-height: 14px;
  color: #bccdd0;
  font-size: 10px;
}

/* Zeit links */
.rkch-time-area {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.rkch-time-card {
  width: min(100%, 280px);
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 13px;
  row-gap: 3px;
  padding: 13px 16px;

  border-radius: 13px;
  background: rgba(3,16,18,.72);
}

.rkch-time-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
}

.rkch-time-heading svg {
  width: 18px;
  height: 18px;
  fill: var(--rkch-cyan);
}

.rkch-time-value {
  color: var(--rkch-cyan);
  font: 800 31px/1 Arial, sans-serif;
  letter-spacing: .03em;
}

.rkch-persian-date {
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

/* Menü kompakt */
.rkch-nav {
  position: relative;
  background: linear-gradient(180deg,#111416,#0a0c0d);
  border-bottom: 1px solid var(--rkch-line);
}

.rkch-nav-inner {
  min-height: 58px;
  display: flex;
  align-items: stretch;
}

.rkch-menu-wrap {
  flex: 1;
}

.rkch-menu {
  min-height: 58px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.rkch-menu > li {
  position: relative;
  display: flex;
  margin: 0 !important;
}

.rkch-menu a {
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border-left: 1px solid rgba(255,255,255,.07);
}

.rkch-menu > li > a::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  background: var(--rkch-cyan);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.rkch-menu a:hover,
.rkch-menu .current-menu-item > a {
  color: var(--rkch-cyan) !important;
  background: rgba(255,255,255,.03);
}

.rkch-menu > li > a:hover::after,
.rkch-menu > .current-menu-item > a::after {
  transform: scaleX(1);
}

.rkch-menu .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  min-width: 210px;
  display: none;
  margin: 0 !important;
  padding: 8px !important;
  border: 1px solid var(--rkch-line);
  background: #0b0d0e;
  box-shadow: 0 15px 30px rgba(0,0,0,.4);
  list-style: none !important;
}

.rkch-menu li:hover > .sub-menu,
.rkch-menu li:focus-within > .sub-menu {
  display: block;
}

.rkch-menu .sub-menu li,
.rkch-menu .sub-menu a {
  width: 100%;
}

.rkch-menu .sub-menu a {
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  font-size: 14px;
}

.rkch-search-toggle {
  width: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--rkch-line);
  border-left: 1px solid var(--rkch-line);
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.rkch-search-toggle svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.rkch-menu-toggle {
  display: none;
}

.rkch-search-panel {
  border-top: 1px solid var(--rkch-line);
  background: #080a0b;
}

.rkch-search-panel[hidden] {
  display: none;
}

.rkch-search-panel .rkch-container {
  padding-block: 10px;
}

.rkch-search-panel form {
  display: flex;
  gap: 8px;
  margin: 0;
}

.rkch-search-panel label {
  flex: 1;
}

.rkch-search-panel input[type="search"] {
  width: 100%;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 7px;
  color: #fff;
  background: #15191b;
  font: inherit;
}

.rkch-search-panel input[type="submit"] {
  min-height: 42px;
  padding: 7px 18px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--rkch-cyan-dark);
  font: inherit;
  font-weight: 700;
}

@keyframes rkchPulse {
  70% { box-shadow: 0 0 0 8px rgba(220,27,50,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,27,50,0); }
}

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

@keyframes rkchEq {
  0%,100% { transform: scaleY(.55); }
  50% { transform: scaleY(1); }
}

@media (max-width: 980px) {
  .rkch-main-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    padding-block: 14px;
  }

  .rkch-logo-area,
  .rkch-time-area {
    justify-content: center;
  }

  .rkch-logo img {
    width: min(100%, 310px);
    max-height: 82px;
    margin-inline: auto;
  }

  .rkch-player {
    width: min(100%, 500px);
  }

  .rkch-time-card {
    width: min(100%, 320px);
  }

  .rkch-nav-inner {
    min-height: 54px;
    align-items: center;
  }

  .rkch-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid var(--rkch-line);
    border-radius: 7px;
    color: #fff;
    background: rgba(255,255,255,.04);
    font: inherit;
    cursor: pointer;
  }

  .rkch-menu-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    background: #fff;
  }

  .rkch-menu-toggle b {
    margin-right: 7px;
  }

  .rkch-menu-wrap {
    position: static;
  }

  .rkch-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 50;
    min-height: 0;
    display: none;
    flex-direction: column;
    padding: 10px 18px 16px !important;
    background: #0b0d0e;
    box-shadow: 0 18px 32px rgba(0,0,0,.4);
  }

  .rkch-menu.rkch-open {
    display: flex;
  }

  .rkch-menu > li,
  .rkch-menu a {
    width: 100%;
  }

  .rkch-menu a {
    min-height: 44px;
    padding: 8px 12px;
    border-left: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  .rkch-menu .sub-menu {
    position: static;
    display: block;
    width: 100%;
    border: 0;
    box-shadow: none;
    background: rgba(255,255,255,.02);
  }

  .rkch-search-toggle {
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .rkch-container {
    width: min(calc(100% - 22px), var(--rkch-container));
  }

  .rkch-player {
    grid-template-columns: 1fr;
  }

  .rkch-volume-wrap {
    min-height: 43px;
    border-top: 1px solid rgba(255,255,255,.08);
    border-left: 0;
  }

  .rkch-play-button {
    min-height: 64px;
  }

  .rkch-player-copy strong {
    font-size: 19px;
  }

  .rkch-time-card {
    min-height: 82px;
  }
}
