:root {
  --gastrofrit-bg-primary: #0c0c0c;
  --gastrofrit-bg-secondary: #161616;
  --gastrofrit-bg-tertiary: #1f1f1f;
  --gastrofrit-bg-quaternary: #262626;
  --gastrofrit-bg-dark: #050505;
  --gastrofrit-accent-primary: #ffcd05;
  --gastrofrit-accent-dark: rgba(9, 9, 9, 1);
  --gastrofrit-accent-muted: #aea36f;
  --gastrofrit-accent-light: #fffefe;
  --gastrofrit-text-primary: #eaeaea;
  --gastrofrit-text-secondary: #b3b3b3;
  --gastrofrit-border: #2e2e2e;
  --gastrofrit-shadow: rgba(0, 0, 0, 0.6);
  --gastrofrit-danger: #ef4444;
}

.gastrofrit-container {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.gastrofrit-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: -o-linear-gradient(315deg, var(--gastrofrit-accent-primary), #8b5cf6);
  background: linear-gradient(135deg, var(--gastrofrit-accent-primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--gastrofrit-text-primary);
}

.gastrofrit-subtitle {
  font-size: 1.1rem;
  color: var(--gastrofrit-text-primary);
  margin-bottom: 3rem;
}

.gastrofrit-menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 1.25rem;
}

.gastrofrit-menu-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  width: 40px;
  height: 40px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #ffffff;
  border-radius: 50%;
  -webkit-box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
          box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  position: absolute;
  z-index: 2;
  right: 5px;
  top: 5px;
  margin-left: auto;
}

.gastrofrit-icon {
  font-size: 2rem;
}

.gastrofrit-arrow {
  font-size: 1.5rem;
  opacity: 0.6;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

@media (hover: hover) {
  .gastrofrit-menu-btn:hover {
    background-color: #ffcd05;
    border-color: #aea36f;
    -webkit-box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
            box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    color: #050505;
  }

  .gastrofrit-menu-btn:hover .gastrofrit-arrow {
    opacity: 1;
    -webkit-transform: translateX(5px);
        -ms-transform: translateX(5px);
            transform: translateX(5px);
  }
}

.gastrofrit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.gastrofrit-overlay.gastrofrit-active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  opacity: 1;
}

.gastrofrit-modal {
  background: var(--gastrofrit-bg-secondary);
  border-radius: 20px;
  max-width: 1400px;
  width: 100%;
  border: 2px solid var(--gastrofrit-border);
  -webkit-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
          box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 400px;
  grid-template-columns: 1fr 400px;
  max-height: 90vh;
  -webkit-transform: translateY(40px) scale(0.95);
      -ms-transform: translateY(40px) scale(0.95);
          transform: translateY(40px) scale(0.95);
  -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -o-transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gastrofrit-overlay.gastrofrit-active .gastrofrit-modal {
  -webkit-transform: translateY(0) scale(1);
      -ms-transform: translateY(0) scale(1);
          transform: translateY(0) scale(1);
}

.gastrofrit-video-section {
  padding: 2rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background: var(--gastrofrit-bg-primary);
}

.gastrofrit-video-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  margin-bottom: 1.5rem;
}

.gastrofrit-video-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gastrofrit-text-primary);
}

.gastrofrit-video-meta {
  font-size: 0.95rem;
  color: var(--gastrofrit-text-secondary);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.gastrofrit-badge {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff6b6b;
}

.gastrofrit-close-btn {
  background: var(--gastrofrit-bg-tertiary);
  border: 1px solid var(--gastrofrit-border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--gastrofrit-text-secondary);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

@media (hover: hover) {
  .gastrofrit-close-btn:hover {
    background: var(--gastrofrit-danger);
    color: #fff;
    border-color: var(--gastrofrit-danger);
    -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
            transform: rotate(180deg);
  }
}

.gastrofrit-player-wrapper {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  -webkit-box-shadow: 0 10px 30px var(--gastrofrit-shadow);
          box-shadow: 0 10px 30px var(--gastrofrit-shadow);
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  position: relative;
  aspect-ratio: 16/9;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.gastrofrit-player-element,
.gastrofrit-youtube-frame {
  width: 100%;
  height: 100%;
  display: none;
}

.gastrofrit-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.gastrofrit-control-btn {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 1rem;
  background: var(--gastrofrit-bg-tertiary);
  border: 1px solid var(--gastrofrit-border);
  border-radius: 10px;
  color: var(--gastrofrit-text-primary);
  cursor: pointer;
  font-weight: 600;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.gastrofrit-control-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (hover: hover) {
  .gastrofrit-control-btn:hover:not(:disabled) {
    background: var(--gastrofrit-accent-primary);
    border-color: var(--gastrofrit-accent-primary);
    -webkit-transform: translateY(-2px);
        -ms-transform: translateY(-2px);
            transform: translateY(-2px);
    color: var(--gastrofrit-bg-tertiary);
  }
}

.gastrofrit-playlist-section {
  background: var(--gastrofrit-bg-secondary);
  border-left: 1px solid var(--gastrofrit-border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  max-height: 90vh;
}

.gastrofrit-playlist-header {
  padding: 2rem 1.5rem 1rem;
  border-bottom: 1px solid var(--gastrofrit-border);
  background: var(--gastrofrit-bg-tertiary);
}

.gastrofrit-playlist-items {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.gastrofrit-playlist-items::-webkit-scrollbar {
  width: 8px;
}

.gastrofrit-playlist-items::-webkit-scrollbar-track {
  background: var(--gastrofrit-bg-primary);
}

.gastrofrit-playlist-items::-webkit-scrollbar-thumb {
  background: var(--gastrofrit-border);
  border-radius: 4px;
}

@media (hover: hover) {
  .gastrofrit-playlist-items::-webkit-scrollbar-thumb:hover {
    background: var(--gastrofrit-accent-primary);
  }
}

.gastrofrit-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--gastrofrit-bg-tertiary);
  border-radius: 10px;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  border: 2px solid transparent;
  position: relative;
}

.gastrofrit-item.gastrofrit-active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--gastrofrit-accent-primary);
}

@media (hover: hover) {
  .gastrofrit-item:hover {
    background: var(--gastrofrit-bg-primary);
    -webkit-transform: translateX(4px);
        -ms-transform: translateX(4px);
            transform: translateX(4px);
  }
}

.gastrofrit-item-thumb-box {
  position: relative;
  width: 80px;
  height: 45px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.gastrofrit-item-thumb {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  -o-object-fit: cover;
     object-fit: cover;
  background: var(--gastrofrit-bg-primary);
}

.gastrofrit-yt-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #ff0000;
  color: white;
  font-size: 0.6rem;
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 700;
}

.gastrofrit-item-info {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.gastrofrit-playlist-title {
  color: var(--gastrofrit-text-primary);
}

.wrapper-gastrofrit-playlist-count span {
  color: var(--gastrofrit-accent-primary);
}

.gastrofrit-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  -o-text-overflow: ellipsis;
     text-overflow: ellipsis;
  color: var(--gastrofrit-text-primary);
}

.gastrofrit-item-dur {
  font-size: 0.8rem;
  color: var(--gastrofrit-text-secondary);
}

.gastrofrit-play-icon {
  color: var(--gastrofrit-accent-primary);
  opacity: 0;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

.gastrofrit-item.gastrofrit-active .gastrofrit-play-icon {
  opacity: 1;
}

@media (hover: hover) {
  .gastrofrit-item:hover .gastrofrit-play-icon {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .gastrofrit-modal {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    -ms-grid-rows: auto 1fr;
    grid-template-rows: auto 1fr;
  }
  .gastrofrit-modal > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
  }
  .gastrofrit-modal > *:nth-child(2) {
    -ms-grid-row: 2;
    -ms-grid-column: 1;
  }

  .gastrofrit-playlist-section {
    border-left: none;
    border-top: 1px solid var(--gastrofrit-border);
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .gastrofrit-controls {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .gastrofrit-item-thumb-box {
    width: 60px;
    height: 34px;
  }
}

.woocommerce-product-gallery .gastrofrit-menu-btn {
  left: 15px;
  right: auto;
  margin: 0;
  top: 20px;
}