:root {
    --bg-main: #FAF7F2;
    --bg-surface: #FFFFFF;
    --bg-subtle: #F3EFE6;
    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #A8A29E;
    --accent: #EA580C;
    --accent-hover: #C2410C;
    --accent-soft: #FFEDD5;
    --border-color: #E7E5E4;
    --success: #16A34A;
    --danger: #EF4444;
    --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.05);
    --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.08);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-main: #121212;
    --bg-surface: #1E1E1E;
    --bg-subtle: #2A2A2A;
    --text-primary: #F5F5F4;
    --text-secondary: #A8A29E;
    --text-muted: #6B6661;
    --accent: #F97316;
    --accent-hover: #FB923C;
    --accent-soft: rgba(249, 115, 22, 0.16);
    --border-color: #2E2E2E;
    --success: #22C55E;
    --danger: #F87171;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #E5E0D8;
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background-color: #080808;
}

.app-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-main);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

button, input {
    font-family: inherit;
    border: none;
    background: none;
    color: inherit;
}

button {
    cursor: pointer;
}

svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.hidden {
    display: none !important;
}

.view-page {
    animation: fadeView 0.22s ease;
}

@keyframes fadeView {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.top-navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color var(--transition), border-color var(--transition);
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    position: relative;
    transition: all var(--transition);
}

.icon-btn:active {
    transform: scale(0.92);
}

.icon-btn.active-filter {
    background-color: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.bookmark-count-badge {
    position: absolute;
    top: -3px;
    left: -3px;
    background-color: var(--accent);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-full);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: transform 0.15s ease;
}

.back-nav-btn:active {
    transform: scale(0.95);
}

.wake-lock-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: var(--radius-full);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.wake-lock-btn.active {
    background-color: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.wake-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: background-color var(--transition);
}

.wake-lock-btn.active .wake-dot {
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.home-view-wrapper {
    padding-bottom: 36px;
}

.search-section {
    padding: 14px 16px 8px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px 12px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent);
}

.search-icon {
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    margin-left: 8px;
}

.search-input {
    width: 100%;
    padding: 9px 0;
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.clear-search-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--bg-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 16px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    white-space: nowrap;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.category-pill.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28);
}

.featured-section {
    padding: 6px 16px 16px;
}

.featured-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 215px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    background-color: var(--bg-subtle);
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.featured-card:active .featured-img {
    transform: scale(1.03);
}

.featured-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 14, 13, 0.9) 12%, rgba(15, 14, 13, 0.25) 65%, rgba(15, 14, 13, 0.1));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 16px;
    color: #FFFFFF;
}

.featured-top-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chef-badge {
    background-color: var(--accent);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.audio-tag-pill {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.featured-info h2 {
    font-size: 1.22rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.recipes-list-section {
    padding: 4px 16px;
}

.list-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.list-count-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.recipe-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-recipe-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-recipe-card:active {
    transform: scale(0.985);
}

.card-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-subtle);
    overflow: hidden;
}

.card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-bookmark-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #1C1917;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: transform 0.15s ease;
}

.card-bookmark-btn:active {
    transform: scale(0.85);
}

.card-bookmark-btn.saved {
    color: var(--danger);
}

.card-bookmark-btn.saved svg {
    fill: var(--danger);
}

.card-audio-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(28, 25, 23, 0.78);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--bg-surface);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.card-body {
    padding: 13px 15px 15px;
}

.card-title {
    font-size: 1.06rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.card-meta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-pill-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-pill-inline svg {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

.empty-state-box {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: 8px;
}

.empty-state-box svg {
    width: 44px;
    height: 44px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.empty-state-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.empty-state-sub {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.reset-filter-btn {
    background-color: var(--accent-soft);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-full);
}

.detail-view-wrapper {
    padding-bottom: 96px;
}

.hero-section {
    padding: 16px;
}

.dish-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-subtle);
    margin-bottom: 16px;
}

.dish-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.difficulty-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--bg-surface);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.detail-bookmark-fab {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    color: #1C1917;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.detail-bookmark-fab.saved {
    color: var(--danger);
}

.detail-bookmark-fab.saved svg {
    fill: var(--danger);
}

.recipe-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 6px;
}

.recipe-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background-color: var(--bg-surface);
    padding: 12px 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: 1px solid var(--border-color);
}

.meta-item:last-child {
    border-left: none;
}

.meta-label {
    font-size: 0.74rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.content-section {
    padding: 8px 16px 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 1.12rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 20px;
    background-color: var(--accent);
    border-radius: 4px;
}

.servings-bar {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.servings-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.servings-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    direction: ltr;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background-color: var(--accent-soft);
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.qty-btn:active {
    transform: scale(0.9);
}

.servings-count {
    font-size: 1rem;
    font-weight: 800;
    min-width: 52px;
    text-align: center;
    direction: rtl;
}

.ingredients-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ingredient-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

.ingredient-row:last-child {
    border-bottom: none;
}

.ingredient-row:active {
    background-color: var(--bg-subtle);
}

.ing-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox svg {
    width: 14px;
    height: 14px;
    stroke: #FFFFFF;
    stroke-width: 3;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.ingredient-row.checked .custom-checkbox {
    background-color: var(--success);
    border-color: var(--success);
}

.ingredient-row.checked .custom-checkbox svg {
    opacity: 1;
    transform: scale(1);
}

.ing-name {
    font-size: 0.94rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ing-amount {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    transition: opacity 0.2s ease;
}

.ingredient-row.checked .ing-name {
    text-decoration: line-through;
    color: var(--text-muted);
}

.ingredient-row.checked .ing-amount {
    opacity: 0.45;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.step-card.active-audio {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.step-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--accent);
    background-color: var(--accent-soft);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.step-inline-audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background-color: var(--bg-subtle);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.step-inline-audio-btn.playing {
    background-color: var(--accent);
    color: #FFFFFF;
}

.step-text {
    font-size: 0.96rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.bottom-cta-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    padding: 12px 16px 16px;
    background: linear-gradient(to top, var(--bg-main) 80%, rgba(250, 247, 242, 0));
    z-index: 25;
}

[data-theme="dark"] .bottom-cta-bar {
    background: linear-gradient(to top, var(--bg-main) 80%, rgba(18, 18, 18, 0));
}

.start-cook-btn {
    width: 100%;
    background-color: var(--accent);
    color: #FFFFFF;
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    font-size: 1.02rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
    transition: transform 0.15s ease;
}

.start-cook-btn:active {
    transform: scale(0.98);
}

.cook-mode-overlay {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 480px;
    height: 100dvh;
    background-color: var(--bg-main);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.28s ease, transform 0.28s ease, background-color var(--transition);
}

.cook-mode-overlay.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cook-top-bar {
    padding: 14px 16px 8px;
    background-color: var(--bg-main);
}

.story-segments {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    direction: ltr;
}

.story-segment {
    flex: 1;
    height: 5px;
    background-color: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    cursor: pointer;
}

.story-segment-fill {
    height: 100%;
    width: 0%;
    background-color: var(--accent);
    border-radius: var(--radius-full);
    transition: width 0.25s ease;
}

.story-segment.completed .story-segment-fill,
.story-segment.current .story-segment-fill {
    width: 100%;
}

.cook-header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cook-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-cook-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.peek-ingredients-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: var(--radius-full);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.cook-step-counter {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent);
}

.cook-card-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 20px;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.cook-step-card {
    background-color: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 26px 22px;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, opacity 0.25s ease, background-color var(--transition);
}

.cook-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cook-card-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--accent);
}

.cook-instruction-text {
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.85;
    color: var(--text-primary);
    margin: auto 0;
}

.swipe-hint-bar {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
    direction: ltr;
}

.nav-step-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 8px;
}

.nav-step-inline-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.cook-audio-player {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 16px 20px 24px;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
}

.player-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.time-display {
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.scrubber-container {
    width: 100%;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.audio-scrubber {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
    direction: ltr;
}

.audio-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.4);
}

.player-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    direction: ltr;
}

.player-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.player-nav-btn:active {
    background-color: var(--bg-subtle);
}

.player-nav-btn:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.player-main-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4);
    transition: transform 0.15s ease;
}

.player-main-play-btn:active {
    transform: scale(0.92);
}

.player-main-play-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.ingredients-drawer-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 120;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.ingredients-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.ingredients-drawer {
    width: 100%;
    max-width: 480px;
    max-height: 75vh;
    background-color: var(--bg-surface);
    border-radius: 24px 24px 0 0;
    padding: 20px 16px 28px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ingredients-drawer-backdrop.open .ingredients-drawer {
    transform: translateY(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-title {
    font-size: 1.02rem;
    font-weight: 800;
}